azure.common package

Submodules

azure.common.credentials.get_azure_cli_credentials()[source]

Return Credentials and default SubscriptionID of current loaded profile of the CLI.

Credentials will be the “az login” command: https://docs.microsoft.com/cli/azure/authenticate-azure-cli

Default subscription ID is either the only one you have, or you can define it: https://docs.microsoft.com/cli/azure/manage-azure-subscriptions-azure-cli

New in version 1.1.6.

Returns:tuple of Credentials and SubscriptionID
Return type:tuple
azure.common.credentials.get_cli_profile()[source]

Return a CLI profile class.

New in version 1.1.6.

Returns:A CLI Profile
Return type:azure.cli.core._profile.Profile
Raises:ImportError if azure-cli-core package is not available

Module contents

exception azure.common.AzureConflictHttpError(message, status_code)[source]

Bases: azure.common.AzureHttpError

exception azure.common.AzureException[source]

Bases: exceptions.Exception

exception azure.common.AzureHttpError(message, status_code)[source]

Bases: azure.common.AzureException

exception azure.common.AzureMissingResourceHttpError(message, status_code)[source]

Bases: azure.common.AzureHttpError