For system, network and cloud administrators

How to list Azure virtual machines using Azure CLI

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


How to create an Azure virtual machine using Azure CLI

In order to create an Azure virtual machine, let’s say Ubuntu, you can use:

az vm create --name YourVMName --resource-group YourResourceGroup --admin-username myuser --image UbuntuLTS --public-ip-sku Standard --generate-ssh-keys --verbose


What is Terraform?

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.


What is “cat”?

cat is a Unix command that will simply output the contents of a file or multiple files.


How to set default Azure subscription using Azure CLI

In order to make a particular Azure subscription as a default subscription, type:

az account set --subscription "yourAzuresubscriptionID"


Follow BusyNetwork