Can't access my VM who IP I changed to static private IP

Muhammad Tahir 1 Reputation point
2021-12-26T09:56:01.787+00:00

Dear all,

Please help me to access my VM (server-2016), what I did is access my new created VM via the Public IP (RDP) then in the VM I assign a static Private IP(192.168.x.x) to the ethernet. now I am unable to access my VM. please suggest me a method to change the settings again to Dynamic to that I can access my VM.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,044 questions
Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
393 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 123.7K Reputation points MVP Volunteer Moderator
    2021-12-26T10:12:37.18+00:00

    Hi @Muhammad Tahir ,

    please try if this helps: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/reset-network-interface

    If you want to provide a "static IP" to a VM please never do this inside the VM OS. Always set the IP to static from "outside" in the Azure Portal or PowerShell.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


  2. Prrudram-MSFT 28,286 Reputation points Microsoft Employee Moderator
    2021-12-28T18:54:45.857+00:00

    Hello @Muhammad Tahir ,

    Welcome to the Microsoft Q&A platform. Happy to answer your question. The best course of action in these situations is generally to follow the guidance from the below document link, the article shows how to reset the network interface for Azure Windows VM to resolve issues when you cannot connect to Microsoft Azure Windows Virtual Machine (VM) after:
    You disable the default Network Interface (NIC).
    or
    You manually set a static IP for the NIC.

    virtual-networks-static-private-ip-arm-pportal

    Later, you can follow the steps from virtual-networks-static-private-ip-arm-pportal to change the private IP address to static from azure VM blade on azure portal

    Please "Accept as Answer" if any of above helped so that, it can help others in community looking for remediation for the similar issues.

    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.