
Explanation:
To trigger the compliance scans, use Azure CLI
https://learn.microsoft.com/en-us/azure/governance/policy/how-to/get-compliance-data#on- demand-evaluation-scan An evaluation scan for a subscription or a resource group can be started with Azure CLI, Azure PowerShell, a call to the REST API, or by using the Azure Policy Compliance Scan GitHub Action. This scan is an asynchronous process. An evaluation scan for a subscription or a resource group can be started with Azure CLI, Azure PowerShell, a call to the REST API, or by using the Azure Policy Compliance Scan GitHub Action. This scan is an asynchronous process.
To generate alerts, configure diagnostic settings for the Azure activity logs
https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-create-new-alert-rule