For system, network and cloud administrators
In order to view what Azure virtual machines are existing within your subscription or, in this case, a particular resource group, you can use:
az vm list --resource-group YourResourceGroup -o table
Let’s talk about infrastructure. Basically, anything that relates to how we’re setting up and configuring (policies, users, VPCs, storage buckets, etc.) what we want for our technology stack is what it’s called infrastructure. And code written in Terraform is focused on infrastructure. Instead of creating virtual machines, networks and subnets, manually, the developers use Terraform to automatically manage and provision their infrastructure for their application, thus Terraform is frequently used for Infrastructure as a Code (IaaC) on multiple cloud providers (GCP, Azure, AWS, Digital Ocean, etc.) these days.
In order to make a particular Azure subscription as a default subscription, type:
az account set --subscription "yourAzuresubscriptionID"