az_role_definition: Azure role definition class

az_role_definitionR Documentation

Azure role definition class


Azure role definition class


An R6 object of class az_role_definition.


  • id: The full resource ID for this role definition.

  • type: The resource type for a role definition. Always Microsoft.Authorization/roleDefinitions.

  • name: A GUID that identifies this role definition.

  • properties: Properties for the role definition.


This class has no methods.


The recommended way to create new instances of this class is via the get_role_definition method for subscription, resource group and resource objects.

Technically role assignments and role definitions are Azure resources, and could be implemented as subclasses of az_resource. AzureRMR treats them as distinct, due to limited RBAC functionality currently supported. In particular, role definitions are read-only: you can retrieve a definition, but not modify it, nor create new definitions.

See Also

get_role_definition, get_role_assignment, az_role_assignment

Overview of role-based access control

AzureRMR documentation built on Sept. 21, 2023, 9:07 a.m.