azurecli

package
v0.20230310.1062650 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinimumVersion   = "2.0.81"
	MsalVersion      = "2.30.0"
	NextMajorVersion = "3.0.0"
)

Variables

This section is empty.

Functions

func CheckAzVersion

func CheckAzVersion(minVersion string, nextMajorVersion *string) error

CheckAzVersion tries to determine the version of Azure CLI in the path and checks for a compatible version

func CheckTenantID

func CheckTenantID(tenantId string) (string, error)

CheckTenantID validates the supplied tenant ID, and tries to determine the default tenant if a valid one is not supplied.

func GetDefaultSubscriptionID added in v0.20230217.1131029

func GetDefaultSubscriptionID() (string, error)

GetDefaultSubscriptionID tries to determine the default subscription

func JSONUnmarshalAzCmd

func JSONUnmarshalAzCmd(i interface{}, arg ...string) error

JSONUnmarshalAzCmd executes an Azure CLI command and unmarshalls the JSON output.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL