To add a second network interface card (NIC) to a virtual machine (VM) in Azure, you can follow the steps outlined in the Microsoft documentation. Once you have added the second NIC, you can remove the old NIC. This should allow you to establish a connection with the VM again.
References: