Install NGINX on a Linux VM in Deployment with Cloud Init

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

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
  1. Log in to the Azure Portal and go to Virtual machines.
  2. Click Add > Virtual machines.
  3. Create a VM with the following settings:
    • Image: Ubuntu Server 18.04 LTS Gen1
    • VM name: LinuxVM1-NGINX
    • VM size: Standard_B2ms
    • Authentication type: Password
    • Public inbound ports: SSH (22)
  4. Add the cloud-init script in the advanced settings before clicking Review + create > Create.
Deploy VM and Verify NGINX is Installed
  1. Once you’ve added the cloud-init script and started the deployment, ensure the VM deployment finishes successfully.
  2. Log in to the VM via SSH.
  3. Check the installed version of NGINX.

Additional Resources

Log in to the Azure portal with the credentials given. Create a VM with the following requirements:

  • Image: Ubuntu Server 18.04 LTS Gen1
  • VM name: LinuxVM1-NGINX
  • VM size: Standard_B2ms
  • Authentication type: Password
  • Public inbound ports: SSH (22)

Ensure you have added the cloud-init script before you create the VM. Once the VM has been deployed successfully, log in via SSH and verify NGINX is already installed.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?