From 234c50bb83b71f49d48af36ad8c539f3fe6bff3a Mon Sep 17 00:00:00 2001 From: Praneeth Date: Wed, 4 Feb 2026 11:55:04 +0530 Subject: [PATCH 1/2] added NotApplicable reason --- src/powershell/private/core/Add-ZtTestResultDetail.ps1 | 2 +- src/powershell/private/core/Get-ZtSkippedReason.ps1 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/powershell/private/core/Add-ZtTestResultDetail.ps1 b/src/powershell/private/core/Add-ZtTestResultDetail.ps1 index 13f81ddaae..be3d7191f8 100644 --- a/src/powershell/private/core/Add-ZtTestResultDetail.ps1 +++ b/src/powershell/private/core/Add-ZtTestResultDetail.ps1 @@ -67,7 +67,7 @@ function Add-ZtTestResultDetail { [ValidateSet('NotConnectedAzure', 'NotConnectedExchange', 'NotDotGovDomain', 'NotLicensedEntraIDP1', 'NotConnectedSecurityCompliance', 'NotLicensedEntraIDP2', 'NotLicensedEntraIDGovernance', 'NotLicensedEntraWorkloadID', 'NotSupported', 'UnderConstruction', - 'NotLicensedIntune', 'NoAzureAccess' + 'NotLicensedIntune', 'NoAzureAccess', 'NotApplicable' )] [string] $SkippedBecause, diff --git a/src/powershell/private/core/Get-ZtSkippedReason.ps1 b/src/powershell/private/core/Get-ZtSkippedReason.ps1 index a8b0571ce3..186f683959 100644 --- a/src/powershell/private/core/Get-ZtSkippedReason.ps1 +++ b/src/powershell/private/core/Get-ZtSkippedReason.ps1 @@ -21,6 +21,7 @@ function Get-ZtSkippedReason { "NotLicensedIntune" { "This test is for tenants that are licensed for Microsoft Intune. See [Microsoft Intune licensing](https://learn.microsoft.com/intune/intune-service/fundamentals/licenses)"; break} "NotSupported" { "This test relies on capabilities not currently available (e.g., cmdlets that are not available on all platforms, Resolve-DnsName)"; break} "NoAzureAccess" { "The signed in user does not have access to the Azure subscription to perform this test."; break} + "NotApplicable" { "This test is not applicable for the current environment."; break} default { $SkippedBecause; break} } } From 4451becc0f513088adaea1512bc35a4132041214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksandar=20Nikoli=C4=87?= Date: Wed, 4 Feb 2026 22:34:27 +0000 Subject: [PATCH 2/2] Update message for 'NotApplicable' case in Get-ZtSkippedReason --- src/powershell/private/core/Get-ZtSkippedReason.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/powershell/private/core/Get-ZtSkippedReason.ps1 b/src/powershell/private/core/Get-ZtSkippedReason.ps1 index 186f683959..3a896a46d0 100644 --- a/src/powershell/private/core/Get-ZtSkippedReason.ps1 +++ b/src/powershell/private/core/Get-ZtSkippedReason.ps1 @@ -21,7 +21,7 @@ function Get-ZtSkippedReason { "NotLicensedIntune" { "This test is for tenants that are licensed for Microsoft Intune. See [Microsoft Intune licensing](https://learn.microsoft.com/intune/intune-service/fundamentals/licenses)"; break} "NotSupported" { "This test relies on capabilities not currently available (e.g., cmdlets that are not available on all platforms, Resolve-DnsName)"; break} "NoAzureAccess" { "The signed in user does not have access to the Azure subscription to perform this test."; break} - "NotApplicable" { "This test is not applicable for the current environment."; break} + "NotApplicable" { "This test is not applicable to the current environment."; break} default { $SkippedBecause; break} } }