Azure Portal

1. Provisioning a VM via Azure Portal

Overview

This exercise introduces the Azure Portal, guiding you through the creation of a Virtual Machine (VM). You will configure an Ubuntu Linux VM with a username/password for access and verify that the VM is running successfully by logging into the VM from Azure Cloud Shell.

Step 1: Log in to Azure Portal

  1. Open a web browser and navigate to the Azure Portal.
  2. Sign in using your Azure account credentials.

Step 2: Create a Resource Group

  1. In the Azure Portal, search for “Resource groups” in the search bar.
  2. Click “Create” and fill in the following:
    • Subscription: Choose your subscription.
    • Resource Group Name: LabResourceGroup
    • Region: Choose a region (e.g. North Europe).
  3. Click Review + Create and then Create.

💡 Information

»

2. Provisioning a VM with SSH Keys and Exploring Linux

Overview

This exercise introduces secure SSH authentication using Azure Portal’s Generate Key Pair feature. You will also connect to the VM using SSH from your local (your laptop) Terminal. While logged in we will explore the Linux filesystem with basic command-line utilities.

Step 1: Log in to Azure Portal

  1. Open a web browser and navigate to the Azure Portal.
  2. Sign in using your Azure account credentials.

Step 2: Create a Virtual Machine with SSH Key Pair

  1. Navigate to Virtual Machines and click Create > Azure Virtual machine.
  2. Configure the VM:
    • Subscription: Select your subscription.
    • Create a new Resource Group: LabSSHResourceGroup. (You can create a new resource group here if you don´t have one already)
    • Virtual Machine Name: LabSSHVM.
    • Region: Same as the resource group.
    • Zone options: Select Azure-selected zone
    • Image: Select Ubuntu Server 24.04 LTS.
    • Size: Choose Standard_B1s.
    • Authentication Type: Select SSH Public Key.
    • Username: azureuser.
  3. Under SSH Public Key Source, select Generate new key pair.
  4. Configure inbound ports:
    • Check Allow selected ports and select HTTP (80) and SSH (22).
  5. Note the name for your key pair (e.g., LabSSHKey) and click Download private key and create resource.

💡 Information

»

3. Automating Nginx Installation with Custom Data Scripts

Overview

This exercise introduces the use of custom data scripts to automate the installation of Nginx during VM provisioning. You will also edit the default Nginx index page to display custom content.

Step 1: Log in to Azure Portal

  1. Open a web browser and navigate to the Azure Portal.
  2. Sign in using your Azure account credentials.

Step 2: Create a Virtual Machine with Custom Data

  1. Navigate to Virtual Machines in the Azure Portal and click Create > Virtual machine.

    »