Before Lab 1.1 — Identity and RBAC Primer
Before Lab 1.1 — Identity and RBAC Primer
In this first lab, you will inspect an Azure environment and look for excessive access.
Before you start, you only need three concepts:
identity
role
scopeIdentity
An identity is something that can receive access.
That identity can be a person, but it can also be an application, script, pipeline or cloud service.
| Identity type | Example |
|---|---|
| Human identity | A developer or student account |
| Group | A team or role-based group |
| Service principal | An application identity used by automation |
| Managed identity | An Azure-managed identity attached to a resource |
A backend application can have its own identity.
This allows the application to access Azure resources without storing usernames or passwords in code.
Managed identity
A managed identity is an identity managed by Azure and attached to an Azure resource.
For example:
Backend App Service
→ has a managed identity
→ uses that identity to access other Azure resourcesScreenshot suggestion
Add a screenshot of the backend App Service identity page.
Suggested screenshot:
Azure Portal → App Service → IdentityShow that the system-assigned managed identity is enabled.
Try to include:
- Status
- Object ID / Principal ID
- Tenant ID
Role assignment
Azure RBAC uses role assignments.
A role assignment combines:
identity + role + scopeExample:
Backend managed identity
+ Contributor
+ Resource groupThis means:
This backend identity receives the Contributor role at resource group scope.
Scope
Scope defines where the permission applies.
A role assigned at a higher scope applies to resources below it.
For example, a role assigned at resource group scope can affect resources inside that resource group.
What to look for in Lab 1.1
During the lab, investigate:
- which resources exist
- which identity belongs to the backend application
- which roles are assigned
- at which scope the roles are assigned
- whether an assignment looks broader than necessary
Lab focus
In Lab 1.1, do not fix anything yet.
Your goal is to observe, document and explain.
Check before starting
You should be able to answer these questions before starting the lab:
- What is a managed identity?
- What are the three parts of a role assignment?
- Why does scope matter?