CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Trigger a policy compliance evaluation at the current subscription scope.

az policy state trigger-scanIdentify

Trigger 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.