CmdID / az / az policy / az policy state
az policy state trigger-scan
Trigger a policy compliance evaluation for a scope. Azure CLI reference
3 examples Its page in the Azure CLI reference
Examples
Trigger a policy compliance evaluation at the current subscription scope.
az policy state trigger-scanIdentifyTrigger a policy compliance evaluation for a resource group.
az policy state trigger-scan -g "myRg"Identify-gName of resource group.Trigger a policy compliance evaluation for a resource group and do not wait for it to complete.
az policy state trigger-scan -g "myRg" --no-waitIdentify-gName of resource group.