disable the VM from obtaining a dynamic IP address from the DHCP service in Azure and have it use my own dhcp service on another azure vm

NEfron 0 Reputation points

I configured a vm with windows server to be a DHCP server, but I can't find a way to use it. The other VMs on my network use the azure DHCP with the IP Is it possible to change it?

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
1,825 questions
Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
992 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AdamZachary 2,851 Reputation points

    Using Custom DHCP on Azure VMs is Unsupported by Microsoft: Running a DHCP service on an Azure VM is not officially supported by Microsoft.

    However, you can change the NIC settings "IP Configurations" from "Dynamic" to "Static".

    If you're creating Virtual Machines using templates or scripts, you can choose you IP configurations to static and choose the relevant configuration.

    If you're creating VMs from the Azure Portal, you can;

    1. Navigate to your VM: Search for and select "Virtual machine".
    2. Select VM: Choose the specific VM (e.g., "myVM") from the list.
    3. Open Networking Settings: On the VM page, under "Settings," select "Networking."
    4. Access Network Interface: Select the network interface name listed next to "Network interface."
    5. Modify IP Configurations: Under "Settings" in the Network interface page, select "IP configurations."
    6. Change Assignment to Static: In "IP configurations," choose the relevant configuration (e.g., "ipconfig1"). Under "Assignment," select "Static" and, if desired, change the private IP address.
    7. Save Changes: Save the new settings​.

    Hope this helps!