Forum Discussion
Force a refresh on the Security Policy
Hello there,
Is it possible to force a refresh on the Security Policy or a single recommendation once changes have been made to correct the security alert?
- No force refresh capability, the scan interval is about 30 min for policy based recommendations.
9 Replies
- ExedexesCopper Contributor
Gunter Danzeisen I had the same issue and found a powershell command that forces an Azure Policy Compliance Scan.
There are two options
Whole Subscription:
$job = Start-AzPolicyComplianceScan -AsJob
$job | Wait-JobSingle Resource Group:
$ResourceGroup = '%yourresourcegroup%'
$job = Start-AzPolicyComplianceScan -ResourceGroupName $ResourceGroup -AsJob
$job | Wait-Job
Hope this helps! - Miri_LandauBrass ContributorNo force refresh capability, the scan interval is about 30 min for policy based recommendations.
- mkoellerCopper Contributor
This is definitely not true. I don't know how long it actually takes and when Defender for Cloud is willing to update its information, but it's definitely closer to 24+ hours than to anything else. It would be a great enhancement if Microsoft enabled a Refresh button on this....
- Greg_SkoffCopper ContributorYes, I've fixed one of the recommendations almost 18 hours ago and the recommendation is still showing in Azure Advisor. I'll keep watching to see when it goes away. 🙂
- ingl0riusCopper Contributor
Are you sure about this? It appears to be taking much, much longer on our dashboard; more like 12+ hours.
- Gunter DanzeisenBrass Contributor
Miri_Landau Thank you for the update. 30 min is really good. I assumed the cycle was something about 24 hours.