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.
9,052 questions
Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
{count} votes

2 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 15,491 Reputation points MVP Volunteer Moderator
    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,356 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.