Lesson 17 of 28 · see all lessons
  1. Start here: cloud concepts (skill area 1, 25-30%)

    1. 1. Start here: the AZ-900 exam, the plan and what you already know
    2. 2. What cloud computing is: shared responsibility and cloud models
    3. 3. Paying for the cloud: the consumption-based model, pricing models and serverless
    4. 4. Why the cloud: availability, scalability, reliability, security and manageability
    5. 5. IaaS, PaaS and SaaS: cloud service types and when to use each
  2. Azure architecture, compute and networking (skill area 2, 35-40%)

    1. 6. Azure global infrastructure: regions, region pairs, sovereign regions and availability zones
    2. 7. Organizing Azure: resources, resource groups, subscriptions and management groups
    3. 8. Azure virtual machines: VM options, scale sets, availability sets and Azure Virtual Desktop
    4. 9. Containers, Azure Functions and app hosting: choosing a compute type
    5. 10. Azure networking: virtual networks, subnets, peering and Azure DNS
    6. 11. Connecting to Azure: VPN Gateway, ExpressRoute, and public and private endpoints
  3. Storage and migration (skill area 2)

    1. 12. Azure Storage services and storage accounts
    2. 13. Storage tiers and redundancy options
    3. 14. Moving files and migrating to Azure: AzCopy, Storage Explorer, File Sync, Azure Migrate and Data Box
  4. Identity, access and security (skill area 2)

    1. 15. Microsoft Entra ID, Entra Domain Services and external identities
    2. 16. Signing in securely: single sign-on, MFA, passwordless and Conditional Access
    3. 17. Azure role-based access control: who can do what, where
    4. 18. Zero Trust, defense in depth and Microsoft Defender for Cloud
  5. Management and governance (skill area 3, 30-35%)

    1. 19. Azure costs: cost factors, the pricing calculator, Cost Management and tags
    2. 20. Governance and compliance: Microsoft Purview, Azure Policy and resource locks
    3. 21. Managing Azure: the portal, Cloud Shell, Azure CLI, PowerShell and Azure Arc
    4. 22. Infrastructure as code: Azure Resource Manager and ARM templates
    5. 23. Monitoring Azure: Advisor, Service Health, Azure Monitor, Log Analytics, alerts and Application Insights
  6. Final review and four mock exams

    1. 24. Final review and exam day: every decision on one page
    2. 25. Mock exam 1
    3. 26. Mock exam 2
    4. 27. Mock exam 3
    5. 28. Mock exam 4
See the leaderboard

17 min

Azure role-based access control: who can do what, where

Use Azure RBAC roles and scopes to give people exactly the access they need.

By the end of this lesson you can

  • Name the three parts of an Azure role assignment
  • Choose between Owner, Contributor, Reader and User Access Administrator
  • Pick the narrowest scope that does the job, and predict what inherits
  • Tell Azure roles apart from Microsoft Entra roles

From earlier lessons · 1 of 2

Copperleaf Logistics wants depot staff to skip the second sign-in step at the depot, but prove it with MFA when they sign in from anywhere else. What should it use?

Pick one answer.

From earlier lessons · 2 of 2

A driver signs in with a password and then taps a fingerprint on a phone. Which two MFA factor types are these?

Pick one answer.

Copperleaf Logistics now signs everyone in with Microsoft Entra ID. Then the auditors arrive with one question: who can change the route-planning app in Azure? Right now the answer is "everyone in IT, plus a contractor from last spring". The IT lead needs a better answer by Friday.

[1]

A role assignment has three parts

Exam depth: know it cold.

Azure role-based access control (Azure RBAC) is the system that decides who can manage which Azure resources. You grant access by creating a role assignment, which joins three things.

  • Security principal: who gets access. It can be a user, a group, a service principal (an app's identity) or a managed identity.
  • Role definition: what they can do. It is a named list of allowed actions, such as read, write and delete. People just call it a role.
  • Scope: where it applies. It is the set of resources the access covers.

Remove the role assignment and the access is gone.

[93][94]

Rendering diagram…
Who, what and where. All three together make one role assignment.

[94]

Copperleaf gives the Finance Analysts group the Reader role on the subscription. In this role assignment, what is the subscription?

Pick one answer.

[94]

The built-in roles to know

Exam depth: know it cold.

Azure has over 100 built-in roles, roles Microsoft writes for you. Four general ones work on every resource type.

RoleManage resources?Grant access to others?
OwnerYes, full access.Yes.
ContributorYes, full access.No.
ReaderNo, view only.No.
User Access AdministratorNo.Yes, manages user access.

Microsoft now also lists Role Based Access Control Administrator, which assigns roles but can't manage access other ways, such as Azure Policy. Recognize it.

Other built-in roles cover one service, such as Virtual Machine Contributor. If none fits, you can create a custom role. Recognize that too.

Decision rule: pick the role with the fewest rights that still does the job.

[95][97]

Match

Match each Copperleaf person to the built-in role that fits with the least access

Pick an item on the left, then its match on the right.

[95]

[95][97]

For this statement, select Yes if it is true. Otherwise, select No. A user with the Contributor role on a resource group can assign roles to other users in that resource group.

Pick one answer.

[95]

Scope and inheritance

Exam depth: know it cold.

You can assign a role at four scope levels, from widest to narrowest: management group, subscription, resource group, resource. You met this hierarchy in lesson 7.

Access flows down. A role granted at a parent scope is inherited by every child scope, including resources added later. Reader on a subscription lets you view every resource group and resource in it. Owner on a management group lets you manage everything in all its subscriptions.

Access never flows up. Contributor on one resource group gives nothing in the resource group next door.

Least privilege means granting only the access needed to do a task. In RBAC that means the smallest role at the narrowest scope.

[93][96]

Copperleaf's scopes: a role set high flows downManagement group: CopperleafSubscription: Copperleaf-ProdResource group: rg-routeplannerResource group: rg-customerdbWeb app: routeplannerDatabase: customersReader here: auditors can viewboth resource groups andeverything in themContributor here: the routeteam manages the web app, butnot the database

[96]

A contractor must update one Azure web app for Copperleaf. The web app shares a resource group with the customer database. The solution must follow least privilege. Where should you assign Contributor?

Pick one answer.

[93][96]

Gave the intern Owner on the management group "just for today". Every subscription under it inherited the intern. Picture: Classic two-panel reaction meme, flat cartoon style.

An allow model, enforced by Azure Resource Manager

Exam depth: know it cold.

Azure RBAC is an allow model. Each role assignment adds permissions, and your effective access is the sum of them all. Read from one assignment plus write from another gives you read and write.

Azure RBAC is enforced on every action that goes through Azure Resource Manager, the management layer behind the Azure portal, Cloud Shell, PowerShell and the Azure CLI. It doesn't control what users do inside your own application. Your app handles that.

Deny assignments (recognize it) block named actions even when a role allows them. Today Azure creates and manages them, for example to protect managed resources.

[93][94][98]

Predict, then reveal

Case step: Priya in Copperleaf IT has Reader on the Copperleaf-Prod subscription. She also has Contributor on rg-routeplanner. Can she restart the route-planning web app? Can she change the customer database in rg-customerdb?

[94]

Azure roles vs Microsoft Entra roles

Exam depth: recognize it.

Two role systems sit side by side, and they don't overlap by default.

Azure roles (Azure RBAC)Microsoft Entra roles
ControlsAzure resources: VMs, storage, databases.The directory: users, groups, passwords, licenses, domains.
ExamplesOwner, Contributor, Reader.Global Administrator, User Administrator, Billing Administrator.
Where it appliesManagement group, subscription, resource group, resource.The Microsoft Entra tenant.

Decision rule: changing an Azure resource is an Azure role. Creating users or resetting passwords is a Microsoft Entra role.

[97]

[97]

Exam-style practice

A logistics company hires a team to build and update its Azure resources. The team must not be able to give anyone else access. Which built-in role should you assign?

Pick one answer.

[95]

For this statement, select Yes if it is true. Otherwise, select No. If you assign the Reader role to a group at a subscription, members can view resources in every resource group in that subscription.

Pick one answer.

[93]

A help desk worker needs to reset staff passwords in Microsoft Entra ID. They don't need to touch any Azure resources. What should you use?

Pick one answer.

[97]

FlashcardsIndex cardsFlashcards ⚡

Card 1 of 17

[93][94][95][96][97][98]

Worth keeping

  1. A role assignment is a security principal plus a role definition plus a scope.
  2. Owner manages and grants access; Contributor manages but can't grant; Reader only views.
  3. Roles inherit down from management group to subscription, resource group and resource.
  4. Azure RBAC is an allow model enforced through Azure Resource Manager.
  5. Azure roles control Azure resources; Microsoft Entra roles control the directory.

On the job

Copperleaf's IT lead answers the auditors with a short list. The route team has Contributor on rg-routeplanner. Auditors have Reader on the subscription. Two named people have Owner. The old contractor's assignment is removed.

Project managers and finance staff hear one question in planning meetings. Can this vendor change our setup? The answer is now a role, a scope and a name, not a guess.

Roles stop the wrong people making changes. But what if an attacker signs in as the right person? Next lesson: Zero Trust, defense in depth and Microsoft Defender for Cloud.

Leaderboard

Loading…

50 XP for each lesson you finish, 10 for each right answer. Names show only for learners who turn on Show me on leaderboards.

Embed this practice on your site

Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.

Report a copyright problem with this lesson

Sources for this lesson (9)

Each fact in the lesson is marked with the number of the page it comes from.

  1. [1]Microsoft Learn: Study guide for Exam AZ-900: Microsoft Azure Fundamentals
  2. [86]Microsoft Learn: Describe Azure authentication methods
  3. [87]Microsoft Learn: Describe Azure conditional access
  4. [93]Microsoft Learn: Describe Azure role-based access control
  5. [94]Microsoft Learn: What is Azure role-based access control (Azure RBAC)?
  6. [95]Microsoft Learn: Azure built-in roles
  7. [96]Microsoft Learn: Understand scope for Azure RBAC
  8. [97]Microsoft Learn: Azure roles, Microsoft Entra roles, and classic subscription administrator roles
  9. [98]Microsoft Learn: List Azure deny assignments