Prompting to add Tags while deploying Azure Resources

Avula, Mallikarjuna 0 Reputation points
2023-02-02T10:34:15.9066667+00:00

I need to enforce tags on Azure resources while creating. Is there any way to prompt the same / enforcing add it while deploying any Azure Resources, hence the Azure Administrator can mandatory update the required Tags .

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

1 answer

Sort by: Most helpful
  1. Rohit Kumar Sinha 1,336 Reputation points
    2023-02-02T10:46:35.2833333+00:00

    HI ,

    You can create custom Azure policy which will have the TAG name in the mandatory field and specify the scope , this will ensure that when the resources are created , if the TAG is not specified , then resource provisioning will fail with error.

    Something like below can be specified in the policy

    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.