AzureCredentialsFactory.FromUserAssigedManagedServiceIdentity Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a credential object using token from local managed service identity endpoint.
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
Parameters
- clientId
- String
User Assigned Identity Client ID
- resourceType
- MSIResourceType
Resource Type for MSI Login Information
- environment
- AzureEnvironment
The environment to authenticate to
- tenantId
- String
The tenant ID
Returns
an authenticated credentials object
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for .NET