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

ManagedIdentity 类

定义

介绍 Azure 资源的托管标识。

public class ManagedIdentity
type ManagedIdentity = class
Public Class ManagedIdentity
继承
ManagedIdentity

构造函数

ManagedIdentity()

初始化 ManagedIdentity 类的新实例。

ManagedIdentity(String, String, Nullable<ManagedIdentityType>, IDictionary<String,UserAssignedIdentity>)

初始化 ManagedIdentity 类的新实例。

属性

PrincipalId

获取托管标识的主体 ID。 此属性仅针对系统分配的标识提供。

TenantId

获取托管标识的租户 ID。 此属性仅针对系统分配的标识提供。

Type

获取或设置资源的托管标识的类型。 可能的值包括:“SystemAssigned”、“UserAssigned”、“SystemAssigned、UserAssigned”、“None”

UserAssignedIdentities

获取或设置与资源关联的用户标识的列表。 用户标识字典键引用将是 ARM 资源 ID,格式为:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。

适用于