Share via


Identity interface

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.

Properties

principalId

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

tenantId

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

type

The identity type. This is the only required field when adding a system or user assigned identity to a resource.

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}'.

Property Details

principalId

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

principalId?: string

Property Value

string

tenantId

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

tenantId?: string

Property Value

string

type

The identity type. This is the only required field when adding a system or user assigned identity to a resource.

type?: ResourceIdentityType

Property Value

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?: Record<string, UserAssignedIdentitiesValue>

Property Value

Record<string, UserAssignedIdentitiesValue>