az_role_assignment: Azure role assignment class

az_role_assignmentR Documentation

Azure role assignment class

Description

Azure role assignment class

Format

An R6 object of class az_role_assignment.

Fields

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

  • type: The resource type for a role assignment. Always Microsoft.Authorization/roleAssignments.

  • name: A GUID that identifies this role assignment.

  • role_name: The role definition name (in text), eg "Contributor".

  • properties: Properties for the role definition.

  • token: An OAuth token, obtained via get_azure_token.

Methods

  • remove(confirm=TRUE): Removes this role assignment.

Initialization

The recommended way to create new instances of this class is via the add_role_assignment and get_role_assignment methods 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.

See Also

add_role_assignment, get_role_assignment, get_role_definition, az_role_definition

Overview of role-based access control


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