package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev

# Functions

CheckAzVersion tries to determine the version of Azure CLI in the path and checks for a compatible version.
GetAccountName returns the name of the authenticated principal.
GetAccountType returns the account type of the authenticated principal.
GetDefaultSubscriptionID tries to determine the default subscription.
GetDefaultTenantID tries to determine the default tenant.
JSONUnmarshalAzCmd executes an Azure CLI command and unmarshalls the JSON output, optionally retrieving from and populating the command result cache, to avoid unnecessary repeated invocations of Azure CLI.
ListAvailableSubscriptionIDs lists the available subscriptions.
ValidateTenantID validates the supplied tenant ID, and tries to determine the default tenant if a valid one is not supplied.

# Constants

MinimumVersion is the oldest supported version of Azure CLI by this package.
MsalVersion is the first known version of Azure CLI to support MSAL / v2 tokens.
NextMajorVersion is the next (possibly upcoming) major version that is not yet supported by this package.