Your manager asks if you can install NGINX on all new Linux VMs with as little manual intervention as possible. Instead of installing NGINX on each VM manually, you can use `cloud-init` to install NGINX during the deployment of a Linux VM.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create a New Linux VM
- Log in to the Azure Portal and go to Virtual machines.
- Click Add > Virtual machines.
- Create a VM with the following settings:
- Image: Ubuntu Server 18.04 LTS Gen2
- VM name: vm1
- VM size: Standard_B2ms
- Authentication type: Password
- Public inbound ports: SSH (22)
- Add the
cloud-init
script in the advanced settings before clicking Review + create > Create.
- Deploy VM and Verify NGINX is Installed
- Once you’ve added the
cloud-init
script and started the deployment, ensure the VM deployment finishes successfully. - Log in to the VM via SSH.
- Check the installed version of NGINX.
- Once you’ve added the