Learn Azure Administration by Kamil Mrzygłód

Learn Azure Administration by Kamil Mrzygłód

Author:Kamil Mrzygłód [Kamil Mrzygłód]
Language: eng
Format: epub
Tags: COM005030 - COMPUTERS / Enterprise Applications / Business Intelligence Tools, COM088010 - COMPUTERS / System Administration / Linux and UNIX Administration, COM019000 - COMPUTERS / System Administration / Disaster and Recovery
Publisher: Packt Publishing
Published: 2020-08-21T11:13:09+00:00


Figure 5.3 - Add role assignment button

On the new screen, you will be asked to select a role, the type of identity, and the actual identity that will be assigned to the resource:

Figure 5.4 - Selecting who is going to have a role assigned to them

Once you click the Save button, an assignment will be created and the selected identity will gain limited access to the resource.

The same can be achieved using the Azure CLI. To do so, use the following command:

$ az role assignment create --role "Contributor" --scope "/subscriptions/.../resourceGroups/azureadministration-euw-rg"

With the preceding command, you will create an assignment – a link between an identity and a role in a specific scope (which can be a subscription, a resource group, or an individual resource). Once a role has been assigned, you will see the following result:

"/subscriptions/.../resourceGroups/azureadminstration-euw-rg" --assignee "<object-id|sp-name|sign-in-name>"

{

"canDelegate": null,

"id": "/subscriptions/.../resourceGroups/azureadminstration-euw-rg/providers/Microsoft.Authorization/roleAssignments/1fb672c8-2116-482b-ac69-dc5bbbbe23af",

"name": "1fb672c8-2116-482b-ac69-dc5bbbbe23af",

"principalId": "fafb2af8-0ec7-4f54-a88e-c696a15d7c0d",

"resourceGroup": "azureadminstration-euw-rg",

"roleDefinitionId": "/subscriptions/.../providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c",

"scope": "/subscriptions/.../resourceGroups/azureadminstration-euw-rg",

"type": "Microsoft.Authorization/roleAssignments"

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.