Lab 02a - Manage Subscriptions and RBAC
Lab 02a - Manage Subscriptions and RBAC
RBAC
Objectives
In this lab, you will:
Instructions
Exercise 1
"IsCustom": true,
"Actions": [
"Microsoft.Resources/subscriptions/resourceGroups/read",
"Microsoft.Support/*"
],
"NotActions": [
],
"AssignableScopes": [
"/providers/Microsoft.Management/managementGroups/az104-02-mg1",
"/subscriptions/SUBSCRIPTION_ID"
In this task, you will create an Azure Active Directory user, assign the RBAC
role you created in the previous task to that user, and verify that the user
can perform the task specified in the RBAC role definition.
1. In the Azure portal, search for and select Azure Active Directory, on
the Azure Active Directory blade, click Users, and then click + New
user.
2. Create a new user with the following settings (leave others with their
defaults):
Setting Value
Name az104-02-aaduser1
11. Do not continue with creating the support request. Instead, sign
out as the az104-02-aaduser1 user from the Azure portal and close the
InPrivate browser window.
Clean up resources
Note: Remember to remove any newly created Azure resources that you no longer use.
Note: Removing unused resources ensures you will not see unexpected charges, although,
resources created in this lab do not incur extra cost.
1. In the Azure portal, search for and select Azure Active Directory, on
the Azure Active Directory blade, click Users.
2. On the Users - All users blade, click az104-02-aaduser1.
3. On the az104-02-aaduser1 - Profile blade, copy the value of Object
ID attribute.
4. In the Azure portal, start a PowerShell session within the Cloud
Shell.
5. From the Cloud Shell pane, run the following to remove the assignment
of the custom role definition (replace the [object_ID] placeholder with
the value of the object ID attribute of the az104-02-aaduser1 Azure
Active Directory user account you copied earlier in this task):
7. In the Azure portal, navigate back to the Users - All users blade of
the Azure Active Directory, and delete the az104-02-
aaduser1 user account.
8. In the Azure portal, navigate to the az104-02-mg1 management
group and display its details.
9. Right-click the ellipsis icon to the right of the entry representing your
Azure subscription and click Move.
10. On the Move blade, select the management group which the
subscription was originally part of and click Save.
11. Navigate back to the Management groups blade, right click
the ellipsis icon to the right of the az104-02-mg1 management
group and click Delete.
Review