To list available locations, use the following command: az account list-locations Create a resource group with the CLI. To create a resource group, use the following command: az group create -n --location chooseLocation Choose a SKU. You also need to choose a SKU for your storage account. You can list storage accounts.
azure account set "subscription-name" will set the subscription as your default subscription and all the commands that you execute will run against that subscription. Every command has a -s or --subscription switch where you can explicitly specify the subscription id. Even if the subscription belongs to a different account, it should still work
Use the following command to set the default location: az configure --defaults location=${LOCATION} Use the following command to list all available subscriptions to determine the subscription ID to use: az account list --output table Use the following command to set the default subscription: az account set --subscription Use If you don't specify a subscription, the command uses your current, active subscription. . To see the subscription you're currently using or to get a list of available subscriptions, run the az account show or az account list command. Go to Learn to use Bash with the Azure CLI to see more examples of ways to use these commands. This sets the subscription across sessions, so if you are using the Azure Portal Shell and you disconnect and reconnect to the Portal, the previous session you set will still be active. Below is an example of the command with for subscription ID xxxxxxxx-xxxx-xxxx-xxxx-15a50ca5132d. az account set --subscription xxxxxxxx-xxxx-xxxx-xxxx-15a50ca5132d
I only have one subscription in my Azure tenant but I will set it anyway using the command below. az account set --subscription "" Set the subscription that you want to work with
FUOxKJ. 27128331120917541010511488