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

SystemAssignedIdentity 构造函数

定义

重载

SystemAssignedIdentity()

初始化 SystemAssignedIdentity 类的新实例。

SystemAssignedIdentity(String, String, String, String, IDictionary<String,String>, Nullable<Guid>, Nullable<Guid>, Nullable<Guid>, String)

初始化 SystemAssignedIdentity 类的新实例。

SystemAssignedIdentity()

初始化 SystemAssignedIdentity 类的新实例。

public SystemAssignedIdentity ();
Public Sub New ()

适用于

SystemAssignedIdentity(String, String, String, String, IDictionary<String,String>, Nullable<Guid>, Nullable<Guid>, Nullable<Guid>, String)

初始化 SystemAssignedIdentity 类的新实例。

public SystemAssignedIdentity (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, Guid? tenantId = default, Guid? principalId = default, Guid? clientId = default, string clientSecretUrl = default);
new Microsoft.Azure.Management.ManagedServiceIdentity.Models.SystemAssignedIdentity : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Nullable<Guid> * Nullable<Guid> * Nullable<Guid> * string -> Microsoft.Azure.Management.ManagedServiceIdentity.Models.SystemAssignedIdentity
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional tenantId As Nullable(Of Guid) = Nothing, Optional principalId As Nullable(Of Guid) = Nothing, Optional clientId As Nullable(Of Guid) = Nothing, Optional clientSecretUrl As String = Nothing)

参数

location
String

资源所在的地理位置

id
String

资源的完全限定资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

资源的名称

type
String

资源类型。 Ex- Microsoft.Compute/virtualMachines 或 Microsoft.Storage/storageAccounts。

tags
IDictionary<String,String>

资源标记

tenantId
Nullable<Guid>

标识所属租户的 ID。

principalId
Nullable<Guid>

与创建的标识关联的服务主体对象的 ID。

clientId
Nullable<Guid>

与标识关联的应用的 ID。 这是 MSI 随机生成的 UUID。

clientSecretUrl
String

可以查询以获取标识凭据的 ManagedServiceIdentity DataPlane URL。

适用于