I
InsightNexus

Class AzureCredentialsFactory | Azure SDK for Net

Author

David Richardson

Published Feb 16, 2026

Inheritance

AzureCredentialsFactory

Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.ResourceManager.Fluent.dll
Syntax
public class AzureCredentialsFactory

Constructors

AzureCredentialsFactory()

Declaration
public AzureCredentialsFactory ();

Methods

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

Declaration
public Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.AzureCredentials FromDevice (string clientId, string tenantId, Microsoft.Azure.Management.ResourceManager.Fluent.AzureEnvironment environment, Func<Microsoft.IdentityModel.Clients.ActiveDirectory.DeviceCodeResult,bool> deviceCodeFlowHandler = null);
Parameters
Returns

FromFile(String)

Declaration
public virtual Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.AzureCredentials FromFile (string authFile);
Parameters
Returns

FromMSI(MSILoginInformation, AzureEnvironment)

Declaration
public Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.AzureCredentials FromMSI (Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.MSILoginInformation msiLoginInformation, Microsoft.Azure.Management.ResourceManager.Fluent.AzureEnvironment environment);
Parameters
Returns

FromServicePrincipal(String, X509Certificate2, String, AzureEnvironment)

Declaration
public Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.AzureCredentials FromServicePrincipal (string clientId, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, string tenantId, Microsoft.Azure.Management.ResourceManager.Fluent.AzureEnvironment environment);
Parameters
Returns

FromServicePrincipal(String, String, String, AzureEnvironment)

Declaration
public virtual Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.AzureCredentials FromServicePrincipal (string clientId, string clientSecret, string tenantId, Microsoft.Azure.Management.ResourceManager.Fluent.AzureEnvironment environment);
Parameters
Returns

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

Declaration
public Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.AzureCredentials FromServicePrincipal (string clientId, string certificatePath, string certificatePassword, string tenantId, Microsoft.Azure.Management.ResourceManager.Fluent.AzureEnvironment environment);
Parameters
Returns