How to restrict users from deploying the resources in a RG when a specified tag is applied to that RG?

Priyanka Varma 60 Reputation points
2024-04-16T07:53:53.1266667+00:00

I already know how to deny resource deployment when a specific tag is missing using Azure custom policies. Now, I'm interested in creating a custom policy that prevents users from deploying resources in a resource group if a particular tag exists for that resource group. Is this possible? If yes, could you provide a complete policy rule?

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
797 questions
0 comments No comments
{count} votes