Adding a Network Interface to a VM in Azure

Hands-On Lab

 

Photo of Chad Crowell

Chad Crowell

DevOps Training Architect II in Content

Length

00:30:00

Difficulty

Beginner

In this hands-on lab, we add a network interface to a VM in Azure. This lab walks through the procedure to successfully add the NIC and start communicating with your storage network.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Adding a Network Interface to a VM in Azure

Introduction

In this hands-on lab, we add a network interface to a VM in Azure.

The Scenario Is as Follows

There is a problem communicating with certain storage devices on your network. You have gone through the troubleshooting steps and determined you need to have one VM communicate on the storage network, but the current network interface is allocated to a separate private subnet.

To effectively communicate with the storage network, you must add an additional NIC to the VM.

This lab walks through the procedure to successfully add the NIC and start communicating with your storage network.

Solution

  1. Log in to the Azure Portal using the credentials provided on the lab instructions page.

Create a Network Interface

  1. Click Virtual machines from the left-hand menu.

  2. Click lab-VM, the virtual machine provided for you as part of this lab.

  3. Under Settings, click Networking.

  4. Click Attach network interface in the top menu bar.

  5. Click Create network interface.

  6. In the Name box, enter storage-nic.

  7. Under Subnet, click the box and select the storage-subnet option.

  8. Click Network security group.

  9. Click Create new.

  1. In the Name box, enter storage-nsg.

  2. Add an inbound rule.

    1. Click Add an inbound rule.

    2. Under Destination port ranges, change the value to 137, 138.

    3. Click the UDP box.

    4. Update the Name to CIFS_UDP.

    5. Click Add.

  3. Add another inbound rule.

    1. Click Add an inbound rule.

    2. Under Destination port ranges, change the value to 139, 445.

    3. Click the TCP box.

    4. Update the Name to CIFS_TCP.

    5. Change the Priority to 101.

    6. Click Add.

  4. Click OK.

  5. Under Resource group, select the only option.

  6. Click Create.

  7. Click OK.

Attach the Network Interface to the VM

  1. Click Overview.

  2. Click Stop in the top menu bar.

  3. Click Yes in the pop-up window.

  4. Once it has stopped, clicked Networking from the menu bar.

  5. Click Attach network interface in the top menu bar.

  6. Make sure storage-nic is selected in the box, and then click OK.

  7. Click Overview.

  8. Click Start in the top menu bar.

Conclusion

Congratulations — you've completed this hands-on lab!