How to disable DHCP on an azure vm

nimi 91 Reputation points
2022-03-29T13:20:19.307+00:00

Please clarify my below doubts.

From my understanding Azure provides DHCP service to the VMs automatically. Right?

We had an Azure windows vm having private ip and it is static and we want to disable the DHCP on the server. How we can do this?

Because when I tries to install one Application on the server, I got a prompt like Private ip needs to be static. That means we should disable the DHCP also. Right?

If there is a possibility to disable DHCP then what all the impacts that can cause the vm?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,014 questions
Windows for business Windows Client for IT Pros Networking Network connectivity and file sharing
Microsoft Security Microsoft Entra Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Carlos Solís Salazar 18,191 Reputation points MVP Volunteer Moderator
    2022-03-29T15:07:13.287+00:00

    Hi @nimi

    Thank you for asking this question on the **Microsoft Q&A Platform. **

    The DHCP server is set by default, however, you can set a static Ip in your server.

    In this link you can find a tutorial https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/virtual-networks-static-private-ip-arm-pportal

    Hope this helps,
    Carlos Solís Salazar

    ----------

    Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.

    NOTE: To answer you as quickly as possible, please mention me in your reply.


    1 person found this answer helpful.

  2. Carlos Solís Salazar 18,191 Reputation points MVP Volunteer Moderator
    2022-03-30T10:00:20.167+00:00

    @nimi , It is not necessary to disable the DHCP.

    If you follow the tutorial that I share with you.

    And, set the static ID address in your Windows Server Network Adapter, should be enough

    This is a tutorial to set the static IP in windows server https://www.snel.com/support/static-ip-configuration-windows-server-2012-2016/

    Try that configuration and let me know how it went.

    Hope this helps,
    Carlos Solís Salazar

    ----------

    Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.

    NOTE: To answer you as quickly as possible, please mention me in your reply.


    0 comments No comments

  3. Devaraj G 2,096 Reputation points Volunteer Moderator
    2022-04-03T15:13:02.59+00:00

    Hi @Alvaro Vinicius - To answer your question, you don't have to disable anything on VM. You can just ignore the prompt. Its prompts due to the application roles being installed and internal validations.

    Its by design and set the static IP and just ignore the prompt.

    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.