Azure Governance: Azure Policy, Resource Locks, Tags and Microsoft Purview
Governance in One Line
Governance means setting rules and making sure resources follow them.
Azure Policy
- Checks resources against rules and can audit, deny or fix them
- Example rules: only allow regions in India, only allow certain VM sizes, require a tag
- An initiative is a group of policies working toward one goal (for example a compliance standard)
- Policies are assigned at a scope and inherited downward
- Shows a compliance dashboard
Policy Versus RBAC
| RBAC | Azure Policy | |
|---|---|---|
| Focus | What a user can do | What resources are allowed to look like |
| Example | Ravi can create VMs | VMs can only be created in Central India |
| Applies to | People and apps | Resources |
Resource Locks
| Lock | Effect |
|---|---|
| CanNotDelete | Users can read and change, but not delete |
| ReadOnly | Users can only read. No change or delete |
- Locks apply to everyone, even owners, until the lock is removed
- Applied to a resource, resource group or subscription and inherited by what is inside
bash
az lock create --name keep-it --lock-type CanNotDelete --resource-group rg-prod
Tags
- Name and value labels on resources, for example
env=prod,owner=finance - Use for cost reports, organization and automation
- Tags are not inherited by default. Policy can add or require them
Microsoft Purview
A set of services to govern and protect data across your cloud and on-premises: find what data you have (data map and catalog), classify sensitive information, track data lineage and support compliance.
Quick Chooser
| Goal | Use |
|---|---|
| Stop resources being created in the wrong region | Azure Policy |
| Stop an important database being deleted by mistake | Resource lock |
| See the costs for each department | Tags + Cost Management |
| Control who can restart VMs | RBAC |
| Find and classify sensitive data | Microsoft Purview |
Practice
- RBAC or Policy: which limits resource regions?
- Does a CanNotDelete lock stop owners from deleting?
- Are tags inherited automatically?
Conclusion
Policy enforces rules on resources, RBAC controls people, locks prevent accidents, tags organize and track cost and Purview governs data.
Quick Summary: policy; vs RBAC; locks; tags; Purview; chooser.

