AZURE - Azure CLI
De PedroWiki
Aller à la navigationAller à la recherche
Introduction
This article will be a kind of cheatsheet regarding the usage of Azure CLI (az).
Account Management
See this page.
Authenticate
See this page.
Interactive method:
az login
Show your actual account configuration
See this page.
az account show
Example:
$ az account show
{
"environmentName": "AzureCloud",
"homeTenantId": "********-****-****-****-************",
"id": "********-****-****-****-************",
"isDefault": true,
"managedByTenants": [
{
"tenantId": "********-****-****-****-************"
}
],
"name": "name-of-subscription",
"state": "Enabled",
"tenantId": "********-****-****-****-************",
"user": {
"name": "account@organisation.com",
"type": "user"
}
}
Switch subscription
See this page.
az account set -s name-of-subscription
Resource group management
List your resource group in actual subscription
See this page.
az group list