RoleAssignmentResult interface

Result of a single role assignment operation.

Properties

error

Error details if the assignment failed.

principalId

The managed identity principal ID.

roleAssignmentId

The created role assignment resource ID (null if failed or what-if mode).

roleDefinitionId

The Azure RBAC role definition ID.

roleDefinitionName

Human-readable role name.

scope

The scope at which the role was/will be assigned.

status

The status of the role assignment operation.

targetResourceId

The target Azure resource ID.

Property Details

error

Error details if the assignment failed.

error?: RoleAssignmentError

Property Value

principalId

The managed identity principal ID.

principalId: string

Property Value

string

roleAssignmentId

The created role assignment resource ID (null if failed or what-if mode).

roleAssignmentId?: string

Property Value

string

roleDefinitionId

The Azure RBAC role definition ID.

roleDefinitionId: string

Property Value

string

roleDefinitionName

Human-readable role name.

roleDefinitionName: string

Property Value

string

scope

The scope at which the role was/will be assigned.

scope: string

Property Value

string

status

The status of the role assignment operation.

status: string

Property Value

string

targetResourceId

The target Azure resource ID.

targetResourceId: string

Property Value

string