Need to change the DNS suffix on an Azure Resource Managed VM

Logan King 1 Reputation point

We have an Azure classic VM that is hosting client data on SQL server. This VM will be deprecated by Microsoft in March of 2023. This classic VM has a DNS suffix of (automatically supplied by Microsoft).
We need to create an Azure Resource Managed (ARM) VM that has the same DNS suffix as the Azure classic VM. When we create a ARM VM an entirely different DNS suffix is automatically generated by Microsoft. The new VM has a DNS suffix of --- this suffix will not work for us since a great deal of our code is written to access a DNS name with the suffix

Is there a way to change the DNS suffix on an ARM VM from to ?

Thanks for your help.

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
449 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,272 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JimmySalian-2011 31,901 Reputation points


    AFAIK, it is not possible to edit or change the Azure provided DNS settings, unless you set your own DNS servers and suffix.

    The DNS zone is Azure-managed and the Azure-created DNS suffix can't be modified.

    I will also suggest you raise a support case with Microsoft in case it impacts your code and apps.

    Hope this helps.

    Please Accept the answer if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  2. msrini-MSFT 6,866 Reputation points Microsoft Employee


    As Jimmy mentioned this is not possible. I would recommend you to create a domain for your server and then slowly map your domain to your newly created ARM VM. You will need to modify your core any which ways.

    But when you map use your domain, you will not be changing the code, instead you will be modifying the CNAME record to change the FQDN in future.

    Karthik Srinivas

    0 comments No comments