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