问题 I try do use Azure Policy to check if all resource groups in my production subscription have a "CanNotDelete" lock. I built a policy inspired by this question, the result can be found below. While testing this, I found out that resource groups without a lock are correctly detected as "non-compliant". However, if a resource group contains a resource which has a dedicated lock (Scope=resource, e.g. only on a KeyVault), the whole resource group will be marked as compliant - even tough only one