AzureCredentialsFactory.FromMSI Method

Definition

Creates a credential object using token from local managed service identity endpoint.

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

Parameters

msiLoginInformation
MSILoginInformation

the information needed for MSI authentication

environment
AzureEnvironment

the environment to authenticate to

tenantId
String

Returns

an authenticated credentials object

Applies to