Compartilhar via


AzureCredentialsFactory.FromUserAssigedManagedServiceIdentity Método

Definição

Cria um objeto de credencial usando o token do ponto de extremidade de identidade de serviço gerenciado local.

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

Parâmetros

clientId
String

ID do cliente de identidade atribuída pelo usuário

resourceType
MSIResourceType

Tipo de recurso para informações de logon do MSI

environment
AzureEnvironment

O ambiente no qual autenticar

tenantId
String

A ID do locatário

Retornos

um objeto de credenciais autenticadas

Aplica-se a