
Let’s talk tags. In Azure, they’re essential metadata that help you organise and manage your environment more effectively. Tags provide context—highlighting what a resource is for, who’s responsible for it, and which cost centre it’s tied to. Without them, it becomes much harder to track spend, assign ownership, or maintain control.
By enforcing tags automatically during deployment, it removes the risk of human error and keeps your estate consistent. Every resource is properly labelled from the outset—making reporting cleaner, cost tracking easier, and accountability crystal clear.
Why enforce tags in the first place?
Tags might seem small, but they’re a key part of cloud governance. A few common examples:
- Environment – Is the resource for development, testing, or production?
- Owner – Who’s responsible for managing it?
- CostCenter – Which team or department should be charged?
Enforcing tags means these details are applied consistently—either by blocking deployments that are missing them or automatically assigning default values. Either way, it keeps your estate clean and well-organised.
How to set up tag enforcement in Azure Policy
Here’s a step-by-step guide to enforcing tags using a built-in Azure Policy:
- Go to the Azure Portal and search for Policy.
- In the left-hand menu, click Definitions.
- Search for the built-in policy named “Require a tag on resources.”
- Select the policy and click Assign.
- Under the Basics tab:
- Set the Scope—this can be a management group, subscription, or resource group.
- (Optional) Give the policy a clear name that reflects its purpose.
- In the Parameters tab:
- Specify the tag name you want to enforce (e.g., Environment).
- Click Review + Create, then Create.
That’s it—Azure will now ensure the tag is present whenever a resource is deployed within that scope.
Best use cases:
- Cost tracking and chargebacks – Tag by department, project, or team to simplify financial reporting.
- Environment separation – Ensure dev, test, and prod resources are properly grouped for clearer visibility.
- Ownership tracking – Make it easy to see who’s responsible for what—no detective work required.
- Automation – Tags make filtering, grouping, and automated workflows much easier.
Best practices:
- Standardise your tag structure – Use consistent tag names and values across teams. Avoid variations like env: prod vs environment: production.
- Focus on what matters – Start with a few essential tags. Too many mandatory tags can cause friction during deployments.
- Roll out gradually – Test in a non-production environment before scaling up across the business.
- Use initiatives – Group related policies together for more structured governance.
Enforcing tags might seem like a small task, but it gives you greater visibility, cleaner reporting, and a more structured approach to cloud governance. And with Azure Policy doing the heavy lifting, it’s one less thing your team needs to chase manually.