Skip to main content

Challenge 17: RBAC, Conditional Access & External Identities

Estimated Time

20-30 min | Cost: Free | Domain: Azure Architecture & Services (35-40%)

Exam skills covered

  • Describe external identities and guest access (B2B)
  • Describe Conditional Access
  • Describe Azure role-based access control (RBAC)

Overview

Once users are authenticated (proven who they are), Azure needs to control what they can do. This is where RBAC (Role-Based Access Control) comes in. Conditional Access adds context-aware policies (where, when, how the user is signing in). External identities allow collaboration with people outside your organization.

Explore

Task 1: Understand Azure RBAC

RBAC answers: "Who can do what, on which resources?"

RBAC componentDescriptionExample
Security principalWhoUser, group, service principal
RoleWhat they can doReader, Contributor, Owner
ScopeWhere it appliesManagement group, subscription, RG, resource

Built-in roles:

RolePermissions
OwnerFull access + can assign roles to others
ContributorFull access EXCEPT assigning roles
ReaderView only — cannot change anything
User Access AdministratorManage user access only

Task 2: Explore RBAC in the Portal

  1. In Azure Portal, navigate to your Subscription
  2. Click Access control (IAM) in the left menu
  3. Click Roles tab — browse available roles
  4. Click Role assignments tab — see who has access
  5. Click Check access — see what a specific user can do
  6. This is read-only exploration

RBAC inheritance: Challenge 17 - RBAC Inheritance

Task 3: Understand Conditional Access

Conditional Access policies are "if-then" rules:

IF (condition) → THEN (action)

Signal (IF)Action (THEN)
User is in risky locationRequire MFA
Device is not compliantBlock access
Accessing sensitive appRequire managed device
User is internal employeeAllow with MFA
User is guest from unknown locationBlock

Common policies:

  • Require MFA for all admin accounts
  • Block sign-ins from countries you don't operate in
  • Require compliant devices for accessing corporate data
  • Force password change if sign-in risk is detected

Task 4: Explore Conditional Access in Portal

  1. In Azure Portal, search for Conditional Access
  2. Or navigate: Microsoft Entra IDSecurityConditional Access
  3. Browse the Policies section
  4. Click + New policy to see what options exist:
    • Assignments: Users, apps, conditions
    • Access controls: Grant, Block, Require MFA
  5. Click Cancel — don't create a policy

Task 5: Understand external identities

B2B (Business-to-Business) allows you to invite external users:

  • Partner employees collaborate in your environment
  • They use their OWN identity (their company email)
  • You control what they can access via RBAC
  • They appear as "Guest" users in your directory
Identity typeDescriptionExample
MemberInternal organization useremployee@contoso.com
Guest (B2B)External user invited to collaboratepartner@fabrikam.com
B2CCustomer identity for public-facing appscustomer@gmail.com
Azure CLI Alternative
# List role assignments on your subscription
az role assignment list --output table --query "[0:5].{Principal:principalName, Role:roleDefinitionName, Scope:scope}"

# List built-in RBAC roles
az role definition list --query "[?roleType=='BuiltInRole'] | [0:10].{Name:roleName, Description:description}" --output table

Key Concepts

ConceptDescription
RBACRole-based access control — assign permissions to roles, roles to users
Role assignmentCombination of security principal + role + scope
ScopeWhere the role applies (management group → subscription → RG → resource)
Conditional AccessIf-then policies that evaluate sign-in context
B2BInvite external users to collaborate using their own identity
B2CCustomer-facing identity management for apps
Least privilegeGive users only the permissions they need

Knowledge Check

1. A user needs to view Azure resources but should not be able to make any changes. Which RBAC role should be assigned?

2. What is the purpose of Conditional Access policies?

3. A company wants to collaborate with a partner organization. Partner employees should use their existing company credentials to access shared resources. Which feature enables this?

4. If a Contributor role is assigned at the subscription level, what does the user have access to?

5. What is the difference between the Owner and Contributor roles?

Learn More