Skip to content

Chapter 6 of 11

Identity: Microsoft Entra ID

Use modern Azure identity, RBAC, managed identities, Conditional Access, and privileged controls.

44 minutes 10 quick checksBy Subha Prasad
Lesson 6 of 11Course navigation

Lesson content

Read, practise, then check your understanding

Identity and Access: Microsoft Entra ID

Microsoft Entra ID is the current name for the cloud identity service formerly called Azure Active Directory. It authenticates users, groups, applications, service principals, devices, and managed identities. Azure role-based access control then authorizes management actions at a scope.

Core ideas

  • A role assignment combines a principal, role definition, and scope such as management group, subscription, resource group, or resource.
  • Built-in roles reduce custom-policy maintenance; custom roles should be narrow and justified.
  • Managed identities remove credential lifecycle from supported Azure workload authentication.
  • Conditional Access evaluates user, device, location, risk, and application signals during authentication.

Design and operating model

Federate workforce identities, require MFA, separate administrative accounts, and use Privileged Identity Management for time-bound elevation. Assign groups rather than individuals where possible. Give workloads managed identities and grant only required data-plane or control-plane roles at the narrowest scope.

Example

PRINCIPAL_ID=$(az webapp identity show \
  --resource-group learning-rg \
  --name replace-with-app \
  --query principalId -o tsv)

az role assignment create \
  --assignee-object-id "$PRINCIPAL_ID" \
  --assignee-principal-type ServicePrincipal \
  --role 'Storage Blob Data Reader' \
  --scope /subscriptions/REPLACE/resourceGroups/learning-rg

Run examples in a disposable training subscription. Replace names, Regions, identifiers, scopes, sizes, and policies with reviewed values, and confirm current Azure CLI and service requirements before production use.

Production guidance

  • Avoid subscription-wide Owner or Contributor when a data or resource-specific role is sufficient.
  • Review guest users, stale service principals, legacy secrets, role inheritance, and privileged groups.
  • Use workload identity federation for CI/CD rather than creating long-lived service-principal secrets.

The chapter quiz follows the lesson and checks both service vocabulary and architecture decisions.

Knowledge check

Answer every question correctly to complete this chapter.

Which statement correctly describes Microsoft Entra ID?
Which term matches this explanation: Azure's cloud identity and access management directory, formerly Azure Active Directory.
Which statement correctly describes Azure RBAC?
Which term matches this explanation: Authorization assigning role definitions to principals at a resource scope.
Which statement correctly describes role assignment?
Which term matches this explanation: The combination of security principal, role definition, and scope.
Which statement correctly describes managed identity?
Which term matches this explanation: A workload identity whose credentials Azure manages automatically.
Which statement correctly describes conditional access?
Which term matches this explanation: Identity policy evaluating signals before granting or blocking access.

0 of 10 checks passed

Your progress is saved on this device.

Identity: Microsoft Entra ID | Azure Lesson | Subha Prasad