Share via

windows server static ip address

Goher, Amr Ragab 0 Reputation points
2025-12-29T08:58:16.96+00:00

can we assign a static ip address to windows server on the windows level

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


2 answers

Sort by: Most helpful
  1. Himanshu Shekhar 6,065 Reputation points Microsoft External Staff Moderator
    2025-12-29T11:23:15.42+00:00

    Hey @Goher, Amr Ragab It looks like you're asking about assigning a static IP address to a Windows Server at the Windows level. Here's how you can do that in Azure:

    Static Private IP Address for an Azure Virtual Machine (VM), you can set a static private IP address using the Azure portal or Azure CLI after the VM is created. Here's a quick overview:

    Azure Portal:     

    1. Go to Virtual machines and select your VM.     
    2. Click on Networking and find the Network interface.     
    3. In the network interface, go to IP configurations.     
    4. Select the ipconfig1 and change the Assignment from Dynamic to Static.
    5. You can optionally change the IP address here. Don’t forget to save your changes!

    If you want a public static IP, you can create a standalone public IP and then associate it with your VM:

    • During VM creation, specify the public IP address as static.   
    • Alternatively, you can create a public IP separately and link it to the VM post-creation.

     Here are some documents that can provide you further guidance:

    Create a virtual machine with a static private IP address - https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/virtual-networks-static-private…

    Virtual networks and virtual machines in Azure - https://learn.microsoft.com/en-us/azure/virtual-network/network-overview?wt.mc_id=knowledgesearch_i…

    Hope this helps you set up your static IP! If you have any questions or need more details, just let me know!

    Was this answer helpful?

    0 comments No comments

  2. Andreas Baumgarten 131.7K Reputation points MVP Volunteer Moderator
    2025-12-29T09:06:06.8866667+00:00

    Hi @Goher, Amr Ragab ,

    for Azure VMs you should not configure a static IP on OS level.

    If you do so it might lead to trouble and issues with the VM.

    But you can change the dynamic IP of the Azure VM to a static IP in the Azure Portal: Change private IP address to static


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

    Regards

    Andreas Baumgarten

    Was this answer helpful?


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.