Replace NIC when an Azure VM loses network Connectivity

Issue:

The user is unable to log in to the Workspot VDI and in the Control the Virtual Desktop is in an error state. Also, the user or Admin is not able to reach the desktop through RDP or ping, and from the Azure Boot diagnostic screen, the Network Icon shows a globe symbol.  

Cause:  This could be related to a Virtual NIC or manually interfering with the DNS entry in the VM. 

Troubleshooting: 

Considering this is a single-user issue, we need to create a new NIC and attach it to the VM. 

  • We have logged into the Azure subscription. 

  • Create a new NIC and attach it to the VM.  

  • Then detached the old NIC from the VM. 

Steps to Change a Network Interface Card to an existing VDI: 

  • Go to the Azure portal and locate the VM. 

  • From the overview, select Stop and then click on Yes to stop and deallocate the VM. 

  • Then select Networking à click on the old NIC (nic-testdel-005-new) to capture the NIC configurations like Resource group, Location, Network Security Group, and Virtual network/Subnet. These details will help to create the new NIC with the same configuration. 

  • Then search the Network Interfaces on the Home page, on the Network Interfaces page click on Create. 

  • On the Create network interface screen select the values for the NIC settings as same as the old NIC. 

  • Select Review + Create and once validation passes, click on Create. 

  • Then go to the VDI and select the Networking à Attach network interface.  

  • Select the new interface that we created and select OK. 

  • After attaching the NIC need to add the network security group to the newly created NIC. 

  • Click on the new NIC on the configuration page.  

  • Click on the Network security group. 

  • Click on the drop-down and select the network security group like the old NIC then click on Save. 

  • Client on Detach network interface and select old NIC and click OK. 

Please Note: After detaching the NIC, you can delete the NC from Azure. 

  • Start the Desktop from Azure, the status of the Desktops in the Control will get changed from Error to Ready.