6j1e& | Trigger an on-demand Azure Policy compliance evaluation scan - Daniel's Tech Blog
https://www.danielstechblog.io/trigger-an-on-demand-azure-policy-compliance-evaluation-scan/
Saved on 2023-09-08 [19608 edays] via danielstechblog.io
Modified 2023-09-08 [19608 edays]
azure cybersecurity

You trigger the evaluation for the current subscription by executing the following Azure CLI command.

az policy state trigger-scan

To restrict the on-demand compliance evaluation scan on a specific resource group you provide an additional parameter.

az policy state trigger-scan --resource-group resource-group-name