Skip to content
Lesson 10 of 13 · Microsoft Azure Fundamentals (AZ-900)

Governance and compliance

Use Azure Policy, resource locks and Microsoft Purview, and tell governance tools apart from access control.

15 min

Governance keeps your cloud in line with your rules. Three tools to know:

Azure Policy defines and enforces rules about resources: allowed regions, allowed VM sizes, required tags, required encryption. A policy has an effect, such as Audit (flag it), Deny (block it) or Modify/Append (add or change settings). Initiatives group policies. Policy checks the properties of resources and can show you a compliance view. It does not decide who can act: that is RBAC.

Resource locks stop accidental changes. Two kinds: CanNotDelete (can read and modify, cannot delete) and ReadOnly (can read only, like a Reader role for everyone). A lock applies to everyone, including Owners, until it is removed. Locks are inherited from resource group to its resources.

Microsoft Purview is a family of data governance, risk and compliance solutions. It helps you discover, classify and protect data across on-premises, multicloud and SaaS, with a data catalog, lineage and compliance tools. Also know the Microsoft Trust Center and Service Trust Portal for compliance documentation and audit reports.

RBAC versus Policy. RBAC answers: what can this person do? Policy answers: what can these resources look like? A person can have Owner rights and still be blocked from creating a VM in a region that Policy denies.

Policy, RBAC and locks.

Azure Policy

Controls
What resource configurations are allowed
Example
Only create resources in West Europe

Best for Standards and compliance

Azure RBAC

Controls
What users can do
Example
Alex can restart VMs in one resource group

Best for Who can act

Resource lock

Controls
Whether a resource can be deleted or changed
Example
Lock the production database from deletion

Best for Safety net against mistakes

Decide

Choose the governance tool.

A company wants to make sure nobody can create resources outside the EU, even administrators.

Common misconception

“If I am an Owner I can do anything, so Policy cannot stop me.”

Owner is the highest role.

What is actually true

Owner controls access, but Azure Policy still evaluates what you try to create or change and can deny it. Locks also apply to Owners.

  • Policy enforces rules on resources. RBAC controls what people may do.
  • Locks: CanNotDelete and ReadOnly. They apply to everyone and are inherited.
  • Purview discovers, classifies and governs data.
  • Policy effects include Audit and Deny.
Check yourself

Governance check.

1Multiple choice

Which service enforces a rule that all resources must have a Department tag?

  • AAzure Bastion
  • BAzure RBAC
  • CAzure Advisor
  • DAzure Policy
2Multiple choice

Which lock type lets users modify a resource but not delete it?

  • ADelete
  • BCanNotDelete
  • CReadOnly
  • DModify
3Multiple choice

Which service helps discover and classify sensitive data across data sources?

  • AMicrosoft Purview
  • BAzure Cloud Shell
  • CAzure Arc
  • DAzure Service Health
4Multiple choice

What can a resource lock stop that RBAC role assignments cannot?

  • ABilling
  • BAccidental deletion even by an Owner
  • CSign-in from other countries
  • DDDoS attacks
5Select all that apply

Which TWO statements about Azure Policy are true?

  • AIt can deny the creation of non-compliant resources
  • BIt replaces tags
  • CIt encrypts all data automatically
  • DIt assigns roles to users
  • EIt can show compliance status

Practise this lesson, not just read it

In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of Microsoft Azure Fundamentals (AZ-900) is planned around your week. Free.