你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ManagedIdentity 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ManagedIdentity() |
初始化 ManagedIdentity 类的新实例。 |
ManagedIdentity(String, String, Nullable<ManagedIdentityType>, IDictionary<String,UserAssignedIdentity>) |
初始化 ManagedIdentity 类的新实例。 |
ManagedIdentity()
初始化 ManagedIdentity 类的新实例。
public ManagedIdentity ();
Public Sub New ()
适用于
ManagedIdentity(String, String, Nullable<ManagedIdentityType>, IDictionary<String,UserAssignedIdentity>)
初始化 ManagedIdentity 类的新实例。
public ManagedIdentity (string principalId = default, string tenantId = default, Microsoft.Azure.Management.ServiceFabric.Models.ManagedIdentityType? type = default, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.ServiceFabric.Models.UserAssignedIdentity> userAssignedIdentities = default);
new Microsoft.Azure.Management.ServiceFabric.Models.ManagedIdentity : string * string * Nullable<Microsoft.Azure.Management.ServiceFabric.Models.ManagedIdentityType> * System.Collections.Generic.IDictionary<string, Microsoft.Azure.Management.ServiceFabric.Models.UserAssignedIdentity> -> Microsoft.Azure.Management.ServiceFabric.Models.ManagedIdentity
Public Sub New (Optional principalId As String = Nothing, Optional tenantId As String = Nothing, Optional type As Nullable(Of ManagedIdentityType) = Nothing, Optional userAssignedIdentities As IDictionary(Of String, UserAssignedIdentity) = Nothing)
参数
- principalId
- String
托管标识的主体 ID。 仅为系统分配的标识提供此属性。
- tenantId
- String
托管标识的租户 ID。 仅为系统分配的标识提供此属性。
- type
- Nullable<ManagedIdentityType>
资源的托管标识类型。 可能的值包括:“SystemAssigned”、“UserAssigned”、“SystemAssigned、UserAssigned”、“None”
- userAssignedIdentities
- IDictionary<String,UserAssignedIdentity>
与资源关联的用户标识列表。 用户标识字典密钥引用将是 ARM 资源 ID,格式为:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。