Exams / AZ-900 / D3 Describe Azure management and governance
Describe features and tools in Azure for governance and compliance
- Describe the purpose of Microsoft Purview in Azure
- Describe the purpose of Azure Policy
- Describe the purpose of resource locks
The governance toolbox at a glance
| Need | Tool | What it does |
|---|---|---|
| Enforce rules on resources (allowed regions, SKUs, resource types) | Azure Policy | Evaluates create/update requests and existing resources against rules; can deny, audit, remediate |
| Prevent accidental deletion or modification | Resource locks | Delete (CanNotDelete) or Read-only (ReadOnly) restriction for all users |
| Organize resources and report costs | Tags | Name/value metadata, e.g. group billing by cost center |
| Know, classify and govern your data | Microsoft Purview | Data discovery, classification, governance, security and compliance |
| Package a governed environment (legacy) | Azure Blueprints | Resource groups + policies + role assignments + ARM templates; retiring (final date January 31, 2027) → Template Specs / Deployment Stacks |
Azure Policy
Azure Policy "helps to enforce organizational standards and to assess compliance at-scale". Typical example from the docs: ensure your team deploys Azure resources only to allowed regions.
| Concept | Meaning |
|---|---|
| Policy definition | One business rule (JSON) with an effect |
| Initiative (policySet) | A collection of policy definitions, assigned and managed as a single item |
| Assignment | A definition or initiative applied to a scope |
| Scope | Management group, subscription, resource group or resource; applies to all resources inside, subscopes can be excluded |
Key effects:
- Deny: fails a create/update request that doesn't match the standard. Existing matching resources are only marked non-compliant; they are never deleted, moved or locked.
- Audit: logs non-compliance but lets the deployment happen.
- Remediation: brings existing resources into compliance (bulk remediation) and new ones automatically.
Useful built-ins for the exam: Allowed locations (regions), Not allowed resource types (e.g. block virtual machines in a resource group but allow everything else).
Policy vs RBAC: RBAC manages what users can do at a scope; Policy governs what resources look like. The combination gives full scope control.
Resource locks
An administrator can lock a subscription, resource group or resource to protect them from accidental deletions and modifications. Locks do not apply to Microsoft Entra objects (users, groups, administrative units).
| Portal name | CLI name | Read | Modify | Delete |
|---|---|---|---|---|
| Delete | CanNotDelete | ✅ | ✅ | ❌ |
| Read-only | ReadOnly | ✅ | ❌ | ❌ |
Rules to remember:
- Locks override user permissions: they apply to all users and roles, unlike RBAC. Even an Owner must remove the lock first before deleting.
- To create or delete locks you need
Microsoft.Authorization/*orMicrosoft.Authorization/locks/*actions (Owner, User Access Administrator). - Inheritance: a lock on a parent scope is inherited by every resource in it, including resources added later. The most restrictive lock wins, so several locks can apply to one resource.
- A Delete lock on a resource blocks deleting its whole resource group.
- Locks only cover control-plane operations (
management.azure.com). Example: a read-only lock on a storage account prevents creating a blob container through the control plane, but locks don't protect blob/queue/table/file data accessed through the data plane. - Read-only side effects: on a resource group with a VM, nobody can start/restart the VM; resources can't be moved in or out of the group.
- In the portal, locks are under Settings → Locks of the subscription, resource group or resource.
Microsoft Purview
Microsoft Purview brings together data security, data governance and data compliance in one portal.
| Capability | Examples |
|---|---|
| Discover | Find what data you have, where it lives and how much is sensitive |
| Classify | Sensitive information types, trainable classifiers, data classification dashboards |
| Govern | Catalog assets, data quality, accountability |
| Protect | Data Loss Prevention, Insider Risk Management, Communication Compliance |
Purview does not do backup (that is Azure Backup).
Exam traps
- "Restrict regions / VM sizes / resource types": Azure Policy, never a lock, management group or reservation.
- Initiative = group of definitions, not of assignments or role assignments.
- A deny policy does not touch existing resources: they keep working and are just reported non-compliant.
- "Only compliant resources can be deployed" is true with the deny effect; audit still lets them through.
- Delete lock: you can still modify; Read-only lock → no modify and no delete.
- No modify + no delete on a resource group and its content: Read-only lock on the resource group.
- Create allowed but delete blocked: Delete lock; soft delete only recovers data.
- Locks go on subscriptions, resource groups, resources — never on users or policies.
- Azure Blueprints still appears in old questions (environment with policies + role assignments + templates), but it is being retired.
Docs
- Overview of Azure Policy
- Azure Policy initiative definition structure
- Azure Policy deny effect
- Azure Policy effect basics
- Tutorial: Disallow resource types
- Quickstart: Assign a policy in the portal
- Lock your Azure resources
- Azure Resource Manager overview
- Use tags to organize Azure resources
- What is Azure Blueprints?
- Microsoft Purview: where to start