Created
August 26, 2024 11:54
-
-
Save stijnmoreels/917fe21f9214d6ef431bf38e6b9fa15c to your computer and use it in GitHub Desktop.
Blog.Azure.Policy.AutomatedTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Describe 'Azure policies' { | |
foreach ($policy in $policies) { | |
It $policy.policyDefinitionReferenceId { | |
$definition = $definitions | where { $_.id -eq $item.policyDefinitionId } | |
$item.complianceState | Should -Be 'Compliant' -Because $definition.description | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment