liveBook · Manning

Role assignment

As explained in Microsoft Azure in Action

A role assignment is a configuration that grants a specified authorization role to an identity for a scope such as a resource or resource group.

A role assignment grants an identity a defined set of permissions at a chosen scope. It combines three decisions: who receives access, what the identity may do, and where those permissions apply. section 6.7.3

Choose each part deliberately:

  • Select a security principal, such as a user, service principal, or managed identity. section 6.6.2 section 6.7.3
  • Select a role definition, preferably a built-in role such as Contributor when its permissions fit the job. section 6.7.3
  • Set the scope at management-group, subscription, resource-group, or resource level; narrower scopes limit the assignment’s reach. section 6.7.3

Giving an application deployment access

After creating a service principal, open the target resource or resource group’s Access Control (IAM), add a role assignment, choose Contributor, and select the service principal. The application can then authenticate with its client ID, tenant ID, and secret and manage applicable resources without placing credentials in plaintext configuration. section 6.6.2

Connecting AI Foundry to storage

Assign the AI Foundry workspace’s managed identity the Storage Blob Data Contributor role on the storage account. This lets its pipelines list, read, and write blobs in the reviews container while keeping the permission tied to the required resource. section 7.4.2

Figure 6.35 Choosing a built-in role, if possible, is the best choice for RBAC.

Use the role-selection view to compare a built-in role with the assignment’s intended permissions before granting access. section 6.7.3

How Microsoft Azure in Action covers it

How deep it goes
Defines the three-part RBAC model and demonstrates portal assignments, but does not detail custom role authoring.
Examples
Demonstrates Contributor access for a service principal and Storage Blob Data Contributor access for an AI Foundry managed identity.
What it assumes
Assumes familiarity with Azure resources and identities while defining security principals, roles, and scopes directly.
What you can do after
Operate/configure Azure access through Access Control (IAM) by assigning built-in roles to identities at appropriate scopes.
How it connects
Connects security principals, role definitions, scopes, RBAC, service principals, and managed identities.

Also explained in

Compare how 3 books explain role assignment →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Microsoft Azure in Action. The section links point to the parts of the book it draws on.