Task 2: Deploy Linux Virtual Machines

Now that a VNET is configured, Task 2 will cover

  • Deploying two Linux Virtual Machines (VMs) in the VNET
  • Identify assigned Public IP (PIP)
  • Confirm access to the Internet
  • Confirm access between each VM

linux-a-vm will have an interface in subnet snet-a linux-b-vm will have an interface in subnet snet-b

Steps to create linux-a-vm

  1. Click the Hamburger menu in the upper-left corner of the Azure Portal to show the “Portal Menu”

  2. Click “Virtual machines”

  3. Click “+ Create”

    azure-creating-linux-vm-1
    azure-creating-linux-vm-2
  4. Click Virtual Machine", You will be redirected to the Create a virtual machine template.

    Under the Basics tab, the Subscription and Resource Groups may already be filled in with your assigned info. If not, see the screenshot below for details.

  5. Update the following fields:

    (Leave the default entry for fields not listed here)

    • Resource group: fgtXX-azure102-workshop
    • Virtual machine name: linux-a-vm
    • Availability options: No infrastructure redundancy required
    • Security type: Standard
    • Image: Select See all images under the image drop-down
    azure-creating-linux-vm-3
  6. Enter Ubuntu 24.04 LTS in the search field

  7. Click “Select”

  8. Click “Ubuntu Server 24.04 LTS - x64 Gen 1”

    azure-creating-linux-vm-4
    azure-creating-linux-vm-5

    Continuing from Create a virtual machine Basics tab:

    • Size: Select See all sizes under the size drop-down
    azure-creating-linux-vm-6
  9. Search for D2s_v5

  10. Select “D2s_v5”

  11. Click “Select”

    azure-creating-linux-vm-7

    Continuing from Create a virtual machine Basics tab:

    • Authentication type: Password
    • Username: azureuser
    • Password: 123Password#@!
    • Confirm password: 123Password#@!
    azure-creating-linux-vm-8
  12. Confirm the changes and the other field’s default entries match as shown here.

    azure-creating-linux-vm-9
  13. Click Next: Disks >.

    On the Disk tab, keep the default settings, take a moment to review the available disk services and settings.

  14. Click “Next: Networking >”

    On the Networking tab, update the following fields:

    (Leave the default entry of the other fields not listed here)

    • Virtual network: Select abc-server-vnet
    • Subnet: Select snet-a (192.168.1.128/27)
    • Delete public IP and NIC when VM is deleted: Select
  15. Confirm the changes and the other field’s default entries match as shown here.

    azure-creating-linux-vm-10
  16. Select Review + create >.

    Note

    You are skipping the Management, Monitoring, Advanced, and Tags tabs. Feel free to review those tabs to view the available services and settings on those tabs.

  17. Confirm the template validation has passed and select Create

    azure-creating-linux-vm-11

    The Deployment is in progress notice is displayed.

    azure-creating-linux-vm-12

    Once the Your deployment is complete notice is displayed, click on the fgtXX-azure102-workshop link to be re-directed to your Resource Group.

    azure-creating-linux-vm-13
  18. Verify the new linux-a-vm and the associated components are listed.

    azure-creating-linux-vm-14

Steps to create linux-b-vm

  1. Follow the same steps to create the linux-b-vm. You will need to alter the following where appropriate:

    • Virtual machine name: linux-b-vm
    • Subnet: snet-b (192.168.1.160/27)
  2. Verify the new linux-b-vm and the associated components are listed.

    azure-creating-linux-vm-15