Unable to remote desktop Azure VM when IP changed from Dynamic to Static (Public IP)

Prashant Andhale 1 Reputation point
2021-06-07T00:56:29.01+00:00

Unable to remote desktop Azure VM when IP changed from Dynamic to Static (Public IP). Previously with Private IP Address and port number I was able to remotely access azure VM.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
{count} votes

3 answers

Sort by: Most helpful
  1. Ramya Harinarthini_MSFT 5,361 Reputation points Microsoft Employee Moderator
    2021-06-07T06:37:26.873+00:00

    @Prashant Andhale Welcome to Microsoft Q&A, Thank you for posting your here!!

    If you have another VM in the same network (Virtual Network or subnet ) of the problem VM please check the connectivity by taking RDP with Private ip of the Problem VM from the other VM and also check if you are able to access the VM form serial console.

    Quick troubleshooting steps

    After each troubleshooting step, try reconnecting to the VM:

    1. Reset Remote Desktop configuration.
    2. Check Network Security Group rules / Cloud Services endpoints.
    3. Review VM console logs.
    4. Reset the NIC for the VM.
    5. Check the VM Resource Health.
    6. Reset your VM password.
    7. Restart your VM.
    8. Redeploy your VM.

    Hope this helps!
    Kindly let us know if the above helps or you need further assistance on this issue.

    -------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


  2. Pritam Ghatak 231 Reputation points
    2021-06-07T07:03:39.17+00:00

    Hi @Prashant Andhale ,

    As I can understand previously you were connecting the VM using private IP address and now is it public ? If you are connecting using public IP address then there might be a possibility that your network is blocking to take remote using public IP (Usually most organization do this). If you are using still private IP, then there should not be an issue if you just changed it to static. Just would like to know how you have changed it ? From Azure NIC level or within OS ?

    Thanks & Regards,
    Pritam Ghatak (Prips)

    Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    0 comments No comments

  3. Anonymous
    2021-08-17T02:00:16.583+00:00

    I had a similar issue that a customer changed the private IP address after login in to the vm.
    What i did was to:

    Stop and deallocate the vm

    Go to networking and click on "Attached interface"

    You may need to create a new interface.

    You can now delete the old NIC, if you want

    You can then assign a new IP or use the existig public ip

    I used these methods to resolved the issue.

    Let me know if these method helped.

    0 comments No comments

Your answer

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