AzureCredentialsFactory.FromMSI 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 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET