How to Restore Connection After Accidentally Disabled NIC on Azure VM

Azure Portal you have created via VM mistake on NIC You can disable and VM Do not worry if you cannot activate your device because your connection has been interrupted. Azure offered to us portal full of miracles 🙂

NIC Because your connection with has been interrupted PowerShell ve WinRM we can't use it, so we can use it through the portal Serial Console we will use the service.

As a last resort Microsoft You may consider Support.

“Azure portal Serial Console, virtual machines (VMs) running Linux or Windows a provides access to a text-based console. This serial connection connects to the ttyS0 or COM1 serial port of a VM or virtual machine scale set instance, providing access independent of network or operating system status.

Enabling NIC using Serial Console

We log in to the Azure Portal and go to the VM for which we want to enable the NIC.

7 picture
Azure portal

In the left menu Serial Console We click on the service and NIC We can start the process to activate it.

Note: Serial Console In order for you to use the service Azure located on VM's It must be in PowerOn state.

Serial Console When the service is opened, it actually takes you to a DCM meets the screen.

8 picture

Our first transaction Serial Console over "cmd" will be using the command, this process opens a new channel for us.

9 picture

Then, to reach the relevant channel, "ch -si 1We use the " ” command and on the screen that opens, we need to enter the user account information we use for the VM.

10 picture

When we log in with the account we use for the VM, we log in to the CMD screen.

11 picture

Now we can start the NIC activation process.

netsh interface set interface "Ethernet" enable
12 picture

After this process, you can connect to your server by RDP, Azure Linux provides serial Console service in the VM.


Similar Articles – How to Restore Connection After Accidentally Disabled NIC on Azure VM

Comment