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

ManagedServiceIdentity 类

定义

托管服务标识 (系统分配的标识和/或用户分配的标识) 。

[System.Text.Json.Serialization.JsonConverter(typeof(Azure.ResourceManager.Models.ManagedServiceIdentity+ManagedServiceIdentityConverter))]
public class ManagedServiceIdentity
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.ResourceManager.Models.ManagedServiceIdentity+ManagedServiceIdentityConverter))>]
type ManagedServiceIdentity = class
Public Class ManagedServiceIdentity
继承
ManagedServiceIdentity
属性

构造函数

ManagedServiceIdentity(ManagedServiceIdentityType)

初始化 ManagedServiceIdentity 的新实例。

属性

ManagedServiceIdentityType

托管服务标识的类型 (其中允许 systemAssigned 和 UserAssigned 类型) 。

PrincipalId

系统分配的标识的服务主体 ID。 仅为系统分配的标识提供此属性。

TenantId

系统分配的标识的租户 ID。 仅为系统分配的标识提供此属性。

UserAssignedIdentities

与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将采用 ARM 资源 ID,格式为:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是请求中 ({}) 的空对象。

适用于