Installing Azure CLI
- Login to the machine using privileged account.
- Download the latest build of Azure CLI:
- Windows download instruction and location:
- https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest
- Linux download instruction and location:
- https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest
Login to the Azure subscription
- Run the command below to login to the Azure subscription:
- 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