Struct azure_identity::AzureCliCredential
source · pub struct AzureCliCredential { /* private fields */ }
Expand description
Enables authentication to Azure Active Directory using Azure CLI to obtain an access token.
Implementations§
source§impl AzureCliCredential
impl AzureCliCredential
sourcepub fn get_subscription() -> Result<String>
pub fn get_subscription() -> Result<String>
Returns the current subscription ID from the Azure CLI.
sourcepub fn get_tenant() -> Result<String>
pub fn get_tenant() -> Result<String>
Returns the current tenant ID from the Azure CLI.
Trait Implementations§
source§impl Default for AzureCliCredential
impl Default for AzureCliCredential
source§fn default() -> AzureCliCredential
fn default() -> AzureCliCredential
Returns the “default value” for a type. Read more