Share via


AzureCredentialsFactory Class

Definition

public class AzureCredentialsFactory
type AzureCredentialsFactory = class
Public Class AzureCredentialsFactory
Inheritance
AzureCredentialsFactory

Constructors

AzureCredentialsFactory()

Methods

FromDevice(String, String, AzureEnvironment, Func<DeviceCodeResult,Boolean>)

Creates a credentials object through device flow.

FromFile(String)

Creates a credentials object from a file in the following format:

subscription=&lt;subscription-id&gt;
tenant=&lt;tenant-id&gt;
client=&lt;client-id&gt;
key=&lt;client-key&gt;
managementURI=&lt;management-URI&gt;
baseURL=&lt;base-URL&gt;
authURL=&lt;authentication-URL&gt;
FromMSI(MSILoginInformation, AzureEnvironment, String)

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

FromServicePrincipal(String, String, String, AzureEnvironment)

Creates a credentials object from a service principal.

FromServicePrincipal(String, String, String, Boolean, String, AzureEnvironment)

Creates a credentials object from a service principal.

FromServicePrincipal(String, String, String, String, AzureEnvironment)

Creates a credentials object from a service principal.

FromServicePrincipal(String, X509Certificate2, Boolean, String, AzureEnvironment)

Creates a credentials object from a service principal.

FromServicePrincipal(String, X509Certificate2, String, AzureEnvironment)

Creates a credentials object from a service principal.

FromSystemAssignedManagedServiceIdentity(MSIResourceType, AzureEnvironment, String)

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

FromUserAssigedManagedServiceIdentity(String, MSIResourceType, AzureEnvironment, String)

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

Applies to