Back up an Azure virtual machine (Azure)

This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.

Environment-Setup

Step1. Resource Group - Creation:

az group create --name it-infrastructure.solutions --location westeurope --output tsv --query name

Step 2. VNET - Creation:

az network vnet create --resource-group it-infrastructure.solutions --name VNET1 --address-prefixes 10.0.0.0/16 --subnet-name SUBNET1 --subnet-prefixes 10.0.0.0/24

Step 3. Windows VM - Creation:

az vm create --resource-group it-infrastructure.solutions --name WIN1 --size Standard_DS1_v2 --public-ip-sku Standard --vnet-name VNET1 --subnet SUBNET1 --image Win2016Datacenter --admin-username lokalcloudadmin --no-wait --admin-password <password>

Step 4. Linux VM - Creation:

az vm create --resource-group it-infrastructure.solutions --name LIN1 --size Standard_DS1_v2 --image RedHat:RHEL:7-RAW:latest --authentication-type ssh --generate-ssh-keys --vnet-name VNET1 --subnet SUBNET1

References:

https://docs.microsoft.com/en-us/learn/modules/protect-virtual-machines-with-azure-backup/