Identity Class

Identity for the resource. Policy assignments support a maximum of one identity. That is either a system assigned identity or a single user assigned identity.

Constructor

Identity()

Variables

Name Description
principalId
str

The principal ID of the resource identity. This property will only be provided for a system assigned identity.

tenantId
str

The tenant ID of the resource identity. This property will only be provided for a system assigned identity.

type
Union[str, <xref:"ResourceIdentityType">]

The identity type. This is the only required field when adding a system or user assigned identity to a resource. Known values are: "SystemAssigned", "UserAssigned", and "None".

userAssignedIdentities
dict[str, <xref:"UserAssignedIdentitiesValue">]

The user identity associated with the policy. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

Attributes

principalId

The principal ID of the resource identity. This property will only be provided for a system assigned identity.

principalId: str

tenantId

The tenant ID of the resource identity. This property will only be provided for a system assigned identity.

tenantId: str

type

The identity type. This is the only required field when adding a system or user assigned identity to a resource. Known values are: "SystemAssigned", "UserAssigned", and "None".

type: str | ResourceIdentityType

userAssignedIdentities

The user identity associated with the policy. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

userAssignedIdentities: dict[str, 'UserAssignedIdentitiesValue']