Governance & Compliance
Microsoft Purview · Azure Policy and initiatives · resource locks
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Which tool for which need
| Need | Tool |
|---|---|
| Single view of data across on-premises, multicloud and SaaS; discovery, classification, lineage | Microsoft Purview |
| Keep resource configurations compliant with your standards; allowed regions; required tags | Azure Policy |
| Prevent accidental delete or change of a resource, even by an Owner | Resource lock |
Microsoft Purview
Microsoft Purview is a family of data governance, risk and compliance solutions that gives a single, unified view into your data.
- Brings together insights about on-premises, multicloud and software-as-a-service data.
- Keeps you up to date with automated data discovery, sensitive data classification and end-to-end data lineage.
- Two main solution areas: risk and compliance, and unified data governance.
| Solution area | What it helps you do |
|---|---|
| Risk and compliance | Protect sensitive data across clouds, apps and devices; identify data risks and manage regulatory compliance requirements. Microsoft 365 services such as Teams, OneDrive and Exchange are core. |
| Unified data governance | Map your data estate with classification and lineage; find where sensitive data is stored; let consumers find valuable data; manage access at scale. Covers Azure, SQL and Hive databases, on-premises and other clouds such as Amazon S3. |
Azure Policy
- Azure Policy creates, assigns and manages policies that control or audit your resources, so configurations stay compliant with your standards.
- It evaluates resources and highlights the non-compliant ones. It can also prevent non-compliant resources from being created, and in some cases remediate them automatically. Resources can be marked as exceptions.
- An initiative is a group of related policy definitions that tracks compliance toward a larger goal.
- Assign at a management group, subscription, resource group or resource. Policies are inherited by everything inside the scope.
- It also evaluates resources that existed before the policy was created. Built-in definitions exist for Storage, Networking, Compute, Security Center and Monitoring.
- Examples: allow only certain regions, enforce tags, require diagnostic logs to go to a Log Analytics workspace, allow only certain VM sizes.
Azure Policy checks what a resource looks like, whatever the identity. Azure RBAC controls what a user can do. Even a user with permission is blocked if the result would be non-compliant.
Resource locks
| Lock (portal / CLI name) | Authorized users can | Authorized users cannot |
|---|---|---|
| Delete / CanNotDelete | Read and modify | Delete |
| Read-only / ReadOnly | Read (like the Reader role) | Update or delete |
- Scopes: subscription, resource group or resource. You can't add a lock to a management group.
- Locks are inherited, also by resources added later. The most restrictive lock in the chain wins.
- A lock applies regardless of RBAC. Even an Owner must remove the lock first, then do the action.
- Locks cover control plane operations (management.azure.com), not data plane operations: a lock doesn't stop data being written or deleted in a storage account through the data plane.
- To create or delete locks you need
Microsoft.Authorization/locks/*access. Owner and User Access Administrator have it. - Manage locks in the portal, PowerShell, Azure CLI or an ARM template.
Exam Tips
Tick each tip once you can answer it without looking.
“Single unified view of data across on-premises, multicloud and SaaS” → Microsoft Purview. Trap: Azure Policy governs resource configuration, not data discovery.
“Automated data discovery, sensitive data classification, end-to-end lineage” → Microsoft Purview. Trap: Azure Policy governs resource configuration; Purview handles data discovery and classification.
“Purview's two main solution areas” → Risk and compliance; unified data governance. Trap: Two areas only: risk and compliance, and unified data governance.
“Deploy resources only to allowed regions; require tags; allowed VM sizes” → Azure Policy. Trap: A resource lock doesn't evaluate properties of resources.
“Group related policy definitions toward one compliance goal” → Policy initiative. Trap: A single policy definition is one rule.
“Policy assigned to a resource group” → Inherited by all resources in the group. Trap: Not limited to resources that exist at assignment time.
“Policy created after VMs already exist” → Existing VMs are evaluated too. Trap: Policy doesn't only check new resources.
“Auto-add a missing tag to non-compliant resources” → Azure Policy remediation. Trap: Remediation is optional and automatic only in some cases; resources can also be marked as exceptions.
“Stop anyone deleting a critical resource by mistake, even an Owner” → Delete lock (CanNotDelete). Trap: RBAC alone isn't enough: Owners can still delete.
“Users may read but not modify or delete” → Read-only lock. Trap: Read-only acts like the Reader role; a Delete lock still allows modification.
“Users may modify but not delete” → Delete lock. Trap: Read-only blocks updates too.
“Locked resource must be changed or removed” → Remove the lock first, then act. Trap: The lock applies regardless of RBAC role, Owner included.
“Lock on a resource group” → Inherited by all resources in it, including later ones. Trap: Policy and locks both inherit, but locks block actions; policy checks compliance.
“Can you lock a management group?” → No: subscription, resource group or resource only. Trap: A lock can be added only at subscription, resource group or resource scope.
“Lock protects storage account data from being deleted?” → No: locks cover control plane, not data plane. Trap: A lock protects the account from control plane changes; data plane requests aren't blocked.
“Policy vs RBAC” → Policy: resource state and compliance. RBAC: what users can do. Trap: Policy still blocks a non-compliant change by a user who has permission.
Sources
- Describe the purpose of Microsoft Purview
- Learn about Microsoft Purview
- Describe the purpose of Azure Policy
- Overview of Azure Policy
- Describe the purpose of resource locks
- Lock your Azure resources
Checked against Microsoft Learn on November 13, 2026.