Class AzureCliCredentialOptions
Options for configuring the AzureCliCredential.
public class AzureCliCredentialOptions : TokenCredentialOptions
- Inheritance
-
AzureCliCredentialOptions
- Inherited Members
Constructors
AzureCliCredentialOptions()
public AzureCliCredentialOptions()
Properties
AdditionallyAllowedTenants
Specifies tenants in addition to the specified TenantId for which the credential may acquire tokens. Add the wildcard value "*" to allow the credential to acquire tokens for any tenant the logged in account can access. If no value is specified for TenantId this option will have no effect, and the credential will acquire tokens for any requested tenant.
public IList<string> AdditionallyAllowedTenants { get; }
Property Value
ProcessTimeout
The Cli process timeout.
public TimeSpan? ProcessTimeout { get; set; }
Property Value
TenantId
The ID of the tenant to which the credential will authenticate by default. If not specified, the credential will authenticate to any requested tenant, and will default to the tenant provided to the 'az login' command.
public string TenantId { get; set; }