你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ManagedServiceIdentity Class

Definition

Managed service identity (system assigned and/or user assigned identities)

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.ManagedServiceIdentityTypeConverter))]
public class ManagedServiceIdentity : Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IManagedServiceIdentity
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.ManagedServiceIdentityTypeConverter))>]
type ManagedServiceIdentity = class
    interface IManagedServiceIdentity
    interface IJsonSerializable
Public Class ManagedServiceIdentity
Implements IManagedServiceIdentity
Inheritance
ManagedServiceIdentity
Attributes
Implements

Constructors

ManagedServiceIdentity()

Creates an new ManagedServiceIdentity instance.

Properties

PrincipalId

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

TenantId

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

Type

Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).

UserAssignedIdentity

The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ManagedServiceIdentity.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ManagedServiceIdentity.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IManagedServiceIdentity.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of ManagedServiceIdentity into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to