100 Days of Cloud (Azure Edition)

Day 9 of Cloud (Azure Edition)

AZURE

Nyan

12/2/2025

Day 9: Attach Network Interface Card (NIC) to Azure Virtual Machine

Task: The Nautilus DevOps team is migrating services to Azure. They are breaking down tasks to ensure better control and optimization. You are tasked with attaching an existing network interface (NIC) to a virtual machine (VM).

An existing VM named xfusion-vm and a network interface named xfusion-nic already exist in the West US region.

  • Attach the network interface xfusion-nic to the VM xfusion-vm. Ensure the NIC's status is attached before submitting the task.

  • Make sure that the virtual machine initialisation has been completed before submitting this task.

Use below given Azure Credentials: (You can run the `showcreds` command on the `azure-client` host to retrieve these credentials)

Day 9 of 100 Days of Cloud (Azure Edition) : Solution

  1. Type vm in the search portal and choose Virtual Machines.

  2. Choose a existing virtual machine and choose Networking tab.

Day 9 of 100 Days of Cloud (Azure Edition) : Cheers

  1. Click Add a subnet button.

  1. Click Attach Network Interface before doing this P.S. Stop the existing virtual machine before.

  2. Choose the xfusion-nic and attach this NIC and click OK.

  3. Leave the existing setting as default and Add a subnet.

  1. Start the VM again and the task is done.