Identity Class

Definition

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.

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

Constructors

Identity()

Creates an new Identity instance.

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

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Identity.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Identity.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IIdentity.

FromJsonString(String)

Creates a new instance of Identity, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Identity into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to