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

AzureCredentialsFactory.FromSystemAssignedManagedServiceIdentity 方法

定义

使用来自本地托管服务标识终结点的令牌创建凭据对象。

public Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.AzureCredentials FromSystemAssignedManagedServiceIdentity (Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.MSIResourceType resourceType, Microsoft.Azure.Management.ResourceManager.Fluent.AzureEnvironment environment, string tenantId = default);
member this.FromSystemAssignedManagedServiceIdentity : Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.MSIResourceType * Microsoft.Azure.Management.ResourceManager.Fluent.AzureEnvironment * string -> Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.AzureCredentials
Public Function FromSystemAssignedManagedServiceIdentity (resourceType As MSIResourceType, environment As AzureEnvironment, Optional tenantId As String = Nothing) As AzureCredentials

参数

resourceType
MSIResourceType

MSI 登录信息的资源类型

environment
AzureEnvironment

要向其进行身份验证的环境

tenantId
String

租户 ID

返回

适用于