2.2.3 Create an Azure VM
Creation of Azure VMs.
From Cloud Shell, run
az vm create
to create a Linux VM:
The \
extends the command to new lines.
Run
az vm extension set
to configure Nginx:
This uses the custom script extension to run a BASH script on the VM. When this runs:
Runs
apt-get update
to get latest package information.Install Nginx.
Sets the home page to print a welcome message.