AzSCAP.PolicyInsights.psm1
Import-Module Az.PolicyInsights function Get-AzPolicyCompliance { param ( [string]$PolicyDefinitionId ) return Get-AzPolicyState -Filter "PolicyDefinitionId eq '$PolicyDefinitionId'" } Export-ModuleMember -Function Get-AzPolicyCompliance |