Delen via


AzureCredentialsFactory.FromSystemAssignedManagedServiceIdentity Method

Definition

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

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

Parameters

resourceType
MSIResourceType

Resource Type for MSI Login Information

environment
AzureEnvironment

The environment to authenticate to

tenantId
String

The tenant ID

Returns

Applies to