Using Azure CLI for managing Azure resources: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Installing Azure CLI == * Login to the machine using privileged account. * Download the latest build of Azure CLI. :* Windows download instruction and location: :: https://..." |
No edit summary |
||
Line 14: | Line 14: | ||
* Change the context to a specific Azure subscription: | * Change the context to a specific Azure subscription: | ||
: '''az account set --subscription "My Subscription"''' | : '''az account set --subscription "My Subscription"''' | ||
: Note: Replace “My Subscription” with the relevant subscription name | |||
* Run the command below to verify the currently selected Azure subscription: | * Run the command below to verify the currently selected Azure subscription: | ||
: '''az account show''' | : '''az account show''' |
Revision as of 11:02, 18 February 2019
Installing Azure CLI
- Login to the machine using privileged account.
- Download the latest build of Azure CLI.
- Windows download instruction and location:
- Linux download instruction and location:
Common Azure CLI commands
- Login to an Azure account, from command prompt:
- az login
- List available subscriptions:
- az account list --output table
- Change the context to a specific Azure subscription:
- az account set --subscription "My Subscription"
- Note: Replace “My Subscription” with the relevant subscription name
- Run the command below to verify the currently selected Azure subscription:
- az account show