AzureCliCredential Class

Definition

Enables authentication to Azure Active Directory using Azure CLI to obtain an access token.

public class AzureCliCredential : Azure.Core.TokenCredential
type AzureCliCredential = class
    inherit TokenCredential
Public Class AzureCliCredential
Inherits TokenCredential
Inheritance
AzureCliCredential

Constructors

AzureCliCredential()

Create an instance of CliCredential class.

Methods

GetToken(TokenRequestContext, CancellationToken)

Obtains a access token from Azure CLI credential, using this access token to authenticate. This method called by Azure SDK clients.

GetTokenAsync(TokenRequestContext, CancellationToken)

Obtains a access token from Azure CLI service, using the access token to authenticate. This method id called by Azure SDK clients.

Applies to