Estimated time: 10 minutes
The goal of this task is to verify the actions permitted a user with limited roles. This includes assigning resource group and resource level roles to a user, and verifing the permissions of that user.
For this task, you will need to start with a resource group named task-rbac-rg. The resource group should contain the following resources:
You can deploy the resources to your subscription by running the following from a bash cloud shell:
curl https://inedemoassets.blob.core.windows.net/taskfiles/azure_admin/deploy-3509T060-pre.sh | sh
You can create a new Azure AD user from the bash cloud shell by running the following command (substitute your values for the domain name and password):
az ad user create --display-name tasks --password <your password> --user-principal-name tasks@<your domain> --force-change-password-next-login false
Example
az ad user create --display-name tasks --password B@dPa55word! --user-principal-name tasks@inedemos.onmicrosoft.com --force-change-password-next-login false
For this requirement you will assign roles on the task-rbac-rg resource group to the tasks Azure AD cloud user and verify their permissions. Perform the following steps to complete this requirement:
For the requirement you will assign the Contributor role on the rbac-vm virtual machine to the tasks Azure AD cloud user. You will then log in to the Azure portal and attempt to stop the virtual machine. To complete this requirement:
When you have completed this task, delete the task-rbac-rg resource group.