liveBook · Manning

Role configuration

As explained in Azure Security

A role definition is an authorization specification that groups permissions into a role assignable to identities.

Role configuration defines the permissions an identity can perform on Azure resources. A role definition answers “what” in authorization, while scope identifies where those permissions apply. section 2.3.2

Use role definitions to shape access deliberately:

  • Select a built-in role when its predefined permissions match a specific operational task. section 2.3.2
  • Create a custom role when users need a granular permission set that existing roles do not provide. section 2.4
  • Group the required actions into one role instead of combining several roles that could overpermission users. section 2.4
  • Treat the role definition as one part of authorization: a role assignment grants it to a security principal at a resource scope. section 2.3.3

Restrict virtual machine operations

A custom role can allow users to restart virtual machines without allowing them to create or delete virtual machines. This concentrates the required permissions in one role and supports least privilege. section 2.4

az role definition list --name "Virtual Machine Contributor"

Inspect a built-in role definition with Azure CLI to review its description, assignable scopes, and permissions before using or adapting it. section 2.3.2

How Azure Security covers it

How deep it goes
Explains concrete and granular permissions, built-in roles, and custom-role rationale, but does not provide detailed custom-role creation steps.
Examples
Uses Virtual Machine Contributor inspection and a custom role that permits restarting but not creating or deleting virtual machines.
What it assumes
Assumes a security principal and resource scope have been identified before defining required permissions.
What you can do after
Build custom permission sets or evaluate built-in role definitions against required Azure operations.
How it connects
Connects role definitions with security principals, scopes, role assignments, built-in roles, custom roles, and least privilege.

Also explained in

Compare how 2 books explain role configuration →

Related concepts

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