Partager via


IIdentity Interface

Definition

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IdentityTypeConverter))]
public interface IIdentity : Microsoft.Azure.PowerShell.Cmdlets.Policy.Runtime.IJsonSerializable
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IdentityTypeConverter))>]
type IIdentity = interface
    interface IJsonSerializable
Public Interface IIdentity
Implements IJsonSerializable
Derived
Attributes
Implements

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.

UserAssignedIdentity

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

Methods

ToJson(JsonObject, SerializationMode) (Inherited from IJsonSerializable)

Applies to