Configure Azure RBAC for a New Administrator
Lab overview
Surf City Boats has hired a second infrastructure administrator, Mike McDermott, and he needs to manage everything in rg-surfcity-infra without being able to touch anything else in the subscription. In this lab you create Mike's account in Microsoft Entra ID, put him in a new security group called sg-surfcity-infra-admins, and assign that group the Contributor role at the resource group scope. You finish on the resource group's Access control (IAM) page, confirming the assignment and using Check access to prove Mike's permissions arrive through the group, not through a direct grant.
Why you'd do this
Azure role-based access control answers three questions for every permission: who (the security principal), what (the role definition), and where (the scope). This lab makes all three choices deliberately. The principal is a group rather than Mike's user account, the role is Contributor rather than Owner, and the scope is one resource group rather than the subscription. Each of those is the choice an experienced administrator makes by default, and each is the kind of distinction AZ-104 tests.
Assigning the role to a group is the habit worth building first. When the third administrator is hired, you add them to sg-surfcity-infra-admins and they inherit everything; when Mike leaves, you remove him from the group and every permission goes with him. Assign roles directly to users and you end up auditing dozens of one-off assignments instead of one membership list. The group is created with Entra roles disabled and Assigned membership, which keeps it a plain Azure resource-access group with nothing clever attached.
Contributor can create, change, and delete resources but cannot grant access to others, which is exactly the difference between an infrastructure admin and an owner. You'll find it on the Privileged administrator roles tab of the role picker, which Azure uses to flag roles that can modify a lot. Because the Surf City tenant has Entra ID P2 features surfaced, the wizard also asks for an assignment type; you'll choose Active and Permanent, since Mike is a standing administrator, not a just-in-time one, and that screen is where PIM-eligible assignments would be set up instead.
The scope is the part that enforces the brief. Lester holds Owner inherited from the subscription, which the Role assignments tab shows plainly; Mike's Contributor is scoped to rg-surfcity-infra and shows This resource. Assignments flow down the hierarchy and never up, so Mike can manage every resource in the group and nothing outside it. The last step, Check access, is the tool you'll reach for in production whenever someone says they can't do something: it shows a principal's effective permissions at a scope and which assignment, including which group, each one comes from.
Lab details
- Signed in as:
[email protected](Owner on the subscription, Global Administrator in Entra) - New user: Mike McDermott ·
[email protected]· job title Infrastructure Administrator · auto-generated password (Mike never signs in during the series) - Security group:
sg-surfcity-infra-admins· Security type · Entra roles not assignable · Assigned membership · member: Mike McDermott - Role assignment: Contributor →
sg-surfcity-infra-admins· Scope:rg-surfcity-infra· Assignment type Active, Permanent - Verification: Role assignments tab (Scope: This resource) and Check access for Mike McDermott
Learning objectives
- Create a user in Microsoft Entra ID with properties set at creation.
- Create an Assigned security group and add a member.
- Explain the three parts of an Azure role assignment: principal, role, and scope.
- Assign a built-in role to a group at the resource group scope, including the assignment type.
- Distinguish inherited assignments from assignments made at the current scope.
- Use Check access to view a principal's effective permissions and their source.
Exam relevance
- AZ-104 — Microsoft Azure Administrator — manage Azure identities and governance: create users and groups, assign built-in roles, scope role assignments, interpret effective access.
- AZ-900 — Microsoft Azure Fundamentals — Azure RBAC concepts, role inheritance through the resource hierarchy, Microsoft Entra ID users and groups.
- SC-900 — Security, Compliance, and Identity Fundamentals — identity as the security perimeter, groups and role assignment basics.
Where this lab fits in the project
The first six labs built Surf City Boats' environment as a single administrator. This lab opens the second half of the project, where you run that environment the way an IT team does, and it starts with the first thing any team needs: a second pair of hands with the right level of access. The Contributor assignment you make here is scoped to the rg-surfcity-infra resource group from lab 1, so Mike inherits access to the network, server, Bastion host, and storage account without any further configuration.
The labs that follow add monitoring, alerting, backup, recovery, and governance to the same resource group, and the lock and policy you apply in lab 12 will constrain Mike's Contributor rights just as they constrain Lester's.
Step-by-step instructions
- Open Microsoft Entra ID:
- On the Azure portal Home page, in the search box at the top, type
Microsoft Entra IDand select it under Services. - On the Overview page, confirm the tenant name shows Surf City Boats.
- On the Azure portal Home page, in the search box at the top, type
- Create the new administrator's user account:
- In the left menu, under Manage, select Users, then + New user → Create new user.
- In the User principal name field, type
mikemcdermottand confirm the domain shows surfcityboats.com. - In the Display name field, type
Mike McDermott. - Under Password, leave Auto-generate password checked, then select Next: Properties.
- Enter First name
Mike, Last nameMcDermott, and Job titleInfrastructure Administrator. - Select Review + create, then Create.
- Select Refresh and confirm Mike McDermott appears in the All users list.
- Create the security group:
- In the breadcrumb at the top, select Surf City Boats | Users to return to the Entra ID Overview, then under Manage select Groups, then New group.
- Confirm the Group type is Security.
- In the Group name field, type
sg-surfcity-infra-admins; in the Group description field, typeAdministrators of the Surf City Boats Azure infrastructure. - Confirm Microsoft Entra roles can be assigned to the group is No and the Membership type is Assigned.
- Under Members, select No members selected, search for
Mike, select Mike McDermott, then Select; confirm Members shows 1 member selected. - Select Create, then select All groups and confirm
sg-surfcity-infra-adminsis listed.
- Open Access control (IAM) on the resource group:
- In the search box at the top of the portal, type
rg-surfcity-infraand select it under Resources. - In the left menu, select Access control (IAM), then the Role assignments tab.
- Review the existing assignments and confirm Lester Murphy holds Owner, inherited from the subscription.
- In the search box at the top of the portal, type
- Assign the Contributor role to the group:
- Select + Add → Add role assignment.
- Select the Privileged administrator roles tab, select Contributor, then Next.
- Under Assign access to, confirm User, group, or service principal is selected, then select + Select members.
- Search for
sg-surfcity, select sg-surfcity-infra-admins, then Select. - In the Description field, type
Surf City infrastructure admins manage this resource group, then select Next. - On the Assignment type tab, confirm the selected role is Contributor, select Assignment type Active and Assignment duration Permanent, then select Next.
- On the Review + assign tab, confirm Role Contributor, Scope rg-surfcity-infra, and Members sg-surfcity-infra-admins, then select Review + assign.
- Verify the assignment and the effective access:
- On the Role assignments tab, confirm
sg-surfcity-infra-adminsis listed under Contributor with Scope This resource. - Select the Check access tab, then Check access; search for
Mikeand select Mike McDermott. - Confirm the assignments pane shows Contributor on rg-surfcity-infra, granted through the group sg-surfcity-infra-admins.
- Close the pane and return to the portal Home page.
- On the Role assignments tab, confirm
Launch the lab simulation — included with the labITpro All-Access Pass; no Azure subscription required.