Virtual Machine RDP connection

chard chitambo 1 Reputation point
2021-07-22T11:03:54.427+00:00

i Changed my DNS on my virtual Machine and i lost connection. How do i get connection back?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,271 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,289 questions
{count} votes

2 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 13,961 Reputation points MVP
    2021-07-22T13:57:00.977+00:00

    Hi @chard chitambo

    You can restore back your VM after you replace network interface, doing this require a VM downtime.

    1. Shutdown VM
    2. Attach network interface - Create new network interface
    3. Detach old network interface and delete
    4. On the new network interface replace same old IP address and if any same details
    5. power on VM

    this will restore VM back to normal.
    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface

    If the Answer is helpful, please click Accept Answer and up-vote, this can be beneficial to other community members.

    0 comments No comments

  2. Jenny Yan-MSFT 9,326 Reputation points
    2021-07-23T06:24:55.597+00:00

    Hi,

    Did you tried to reboot the VM after changing the DNS configuration?

    Hope following threads would be helpful:
    https://social.msdn.microsoft.com/Forums/azure/en-US/f1cbd823-88b3-437b-b4af-3f7c4b2cbfcc/changing-dns-forces-rdp-disconnect?forum=WAVirtualMachinesforWindows

    https://social.msdn.microsoft.com/Forums/azure/en-US/38c8f3b8-c0db-4912-bfc3-e625a5babdcb/vm-getting-disconnected-after-changing-preferred-dns-ip?forum=WAVirtualMachinesforWindows

    At last, below guidance is a basic troubleshooting reference for RDP failure to Azure VM.
    Troubleshoot Remote Desktop connections to an Azure virtual machine
    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-rdp-connection

    ----------

    If the Answer is helpful, please click Accept Answer and upvote it.

    Thanks,
    Jenny

    0 comments No comments