Udostępnij za pośrednictwem


AzureCredentialsFactory.FromFile(String) Method

Definition

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

subscription=<subscription-id>
tenant=<tenant-id>
client=<client-id>
key=<client-key>
managementURI=<management-URI>
baseURL=<base-URL>
authURL=<authentication-URL>
public virtual Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.AzureCredentials FromFile (string authFile);
abstract member FromFile : string -> Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.AzureCredentials
override this.FromFile : string -> Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.AzureCredentials
Public Overridable Function FromFile (authFile As String) As AzureCredentials

Parameters

authFile
String

the path to the file

Returns

an authenticated credentials object

Applies to