Governance and compliance tools in Azure
Microsoft Purview for data governance, Azure Policy to enforce rules, and resource locks to stop accidental changes.
- 10 min
- 3 concepts
- Try it yourself
- 4-question check
Learn
Governance means keeping your cloud in line with your organisation's rules. AZ-900 covers three tools: one that understands your data, one that enforces rules on resources, and one that stops resources being changed or deleted by mistake.
- 1
Describe the purpose of Microsoft Purview in Azure
Microsoft Purview is a family of data governance, risk and compliance solutions. It can scan and map data across on-premises, multi-cloud and SaaS sources, classify sensitive data, show where data came from (lineage), and help protect and govern it, for example with sensitivity labels and data loss prevention.
Remember: Purview answers 'what data do we have, where, and is it protected?'
- 2
Describe the purpose of Azure Policy
Azure Policy creates, assigns and manages rules for resources, such as 'only allow VMs in UK South' or 'require a CostCentre tag'. It evaluates resources for compliance, can block non-compliant deployments, and can fix some existing resources with remediation tasks.
Initiatives group related policies, such as a regulatory standard, so you can assign them together. Policies inherit down the management hierarchy.
Remember: Policy controls what resources can be like; RBAC controls what people can do.
- 3
Describe the purpose of resource locks
A resource lock stops resources being deleted or changed by accident. Delete (CanNotDelete) allows changes but not deletion. ReadOnly allows reading only. Locks apply to everyone, even Owners, and are inherited by child resources. To delete a locked resource, remove the lock first.
Remember: Locks override permissions, even an Owner's.
Policy, RBAC or lock?
- Rules about resources
- e.g. allowed regions, required tags
- Audit, deny or remediate
- Rules about people
- e.g. who can create VMs
- Grants permissions at a scope
- Stops accidents
- Delete or ReadOnly
- Applies to everyone
Try it
Choose a policy effect and see what happens when someone deploys a non-compliant resource.
This interactive part needs JavaScript.
In the portal
- Assign a policyAzure portal: Policy > Authoring > Assignments > Assign policy
- Add a lockAzure portal: your resource > Settings > Locks > Add
Key terms
Click a card to see the definition.
Check your understanding
4 questions. Score 80% or more and these skills are marked as confident in your AZ-900 study plan.
Which service ensures VMs can only be created in approved regions?
Policy enforces rules about resource properties.
An Owner tries to delete a resource with a Delete lock. What happens?
Locks apply to everyone.
Which helps you discover and classify data across many sources?
Purview maps and governs data.
What is an initiative?
Initiatives bundle policy definitions.
Sources
- Microsoft Learn: Describe features and tools in Azure for governance and compliance
- Microsoft Learn: What is Azure Policy?
- Microsoft Learn: Lock your resources
- Microsoft Learn: Learn about Microsoft Purview
Facts in this lesson are from Microsoft Learn. This site isn't affiliated with Microsoft.