100 Days of Cloud (Azure Edition)

Day 10 of Cloud (Azure Edition)

AZURE

Nyan

12/3/2025

Day 10: Attach Public IP to Azure Virtual Machine

Task: The Nautilus DevOps team has already set up a virtual machine and allocated a public IP address. The final task is to attach this public IP to the VM's network interface card (NIC).

An existing VM named xfusion-vm-pip and a public IP address named xfusion-pip already exist.

  • Attach the public IP xfusion-pip to the network interface of the VM xfusion-vm-pip.

    Make sure the VM is properly assigned the public IP.

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

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

  1. Type public ip in the search portal and choose Public IP Addresses.

  2. Choose the existing vm xfusion-vm-pip.

  3. Click Associate button.

  4. Choose Resource type as Network interface and in network interface setting choose the existing NIC called xfusion-vm-pipVMNic and click OK.

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

  1. You can verify this task by checking the Associated to and virtual machine as shown as below.