diff --git a/tests/Maester/Entra/Test-ConditionalAccessBaseline.Tests.ps1 b/tests/Maester/Entra/Test-ConditionalAccessBaseline.Tests.ps1 index 7e93e0e5..a2a117bb 100644 --- a/tests/Maester/Entra/Test-ConditionalAccessBaseline.Tests.ps1 +++ b/tests/Maester/Entra/Test-ConditionalAccessBaseline.Tests.ps1 @@ -73,6 +73,7 @@ Describe "Security Defaults" -Tag "CA", "Security", "All" { It "MT.1021: Security Defaults are enabled. See https://maester.dev/docs/tests/MT.1021" -Tag "MT.1021" { + $EntraIDPlan = Get-MtLicenseInformation -Product EntraID if ($EntraIDPlan -ne "Free") { Add-MtTestResultDetail -SkippedBecause LicensedEntraIDPremium } else { @@ -80,4 +81,4 @@ Describe "Security Defaults" -Tag "CA", "Security", "All" { $SecurityDefaults | Should -Be $true -Because "Security Defaults are not enabled" } } -} \ No newline at end of file +}