Change NS in Azure domains

Trezona 1 Reputation point
2022-03-30T19:12:44.64+00:00

try use https://learn.microsoft.com/en-us/answers/questions/497935/azure-domain.html

I want to specify their NS servers, but the example above, I can not do because of the lack of links to Advanced Domain Management. And when I try to go and restore access says that there is no known error, try again later. And then it says you have exhausted 10 attempts... How do I change the NS of the domain ?

188479-image.png

188433-image.png

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,758 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ryan Hill 28,106 Reputation points Microsoft Employee
    2022-04-20T12:53:56.217+00:00

    Hi @Trezona ,

    Access to the Advanced Management Portal has been removed for Pay-As-You-Go subscriptions. Therefore, you will have to transfer you domain out of Azure in order to change NS servers. Managing an App Service Domain has a step-by-step procedure for performing this action through the Management REST API. Essentially, you will use one of the following commands to get an authorization code that you will then use at your preferred registrar.

    • Using Azure CLI: az rest --method PUT --uri 'https://management.azure.com/subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.DomainRegistration/domains/{domainName}/transferOut?api-version=2021-02-01'
    • Using PowerShell: Invoke-AzRestMethod -Path "/subscriptions/{subId}/resourcegroups/{rename}/providers/Microsoft.DomainRegistration/domains/{domainName}/transferout?api-version=2021-02-01" -Method PUT

    Do note if you recently purchased your domain, transferred it, or updated the contact information, you will not be able to transfer for 60 days. If run into any issues or need additional assistance, please follow directions provided by @SnehaAgrawal-MSFT .

    1 person found this answer helpful.
    0 comments No comments

  2. Andriy Bilous 11,421 Reputation points MVP
    2022-03-31T11:41:11.513+00:00

    Hello @Trezona

    The NS record set at the zone apex is automatically created with each DNS zone. It contains the names of the Azure DNS name servers assigned to the zone.
    You may add more name servers to this NS record set, to support cohosting domains with more than one DNS provider. You can also modify the TTL and metadata for this record set. However, you can't remove or modify the pre-populated Azure DNS name servers.

    https://learn.microsoft.com/en-us/azure/dns/dns-operations-recordsets-portal

    If you want to Transfer domain out of Azure (not a registrar) to another registrar, it is supported and you may currently do so via API and PowerShell. You will need to get an authorization code which you can take to the registrar of choice to proceed with transferring out of your domain.

    Getting authorization code with Powershell
    There currently is no first class Powershell support for domain transfer out. However, you can use the following call below to get your authorization code:

    Invoke-AzRestMethod -Path "/subscriptions/<SUBSCRIPTION-ID>/resourceGroups/<RESOURCE-GROUP-NAME>/providers/Microsoft.DomainRegistration/domains/<DOMAIN-NAME>/transferout?api-version=2021-02-01" -Method PUT  
    

    Refer to the “authCode” value without the double quotes (“). This will be the authorization code you will need to provide the new domain registrar to transfer your domain out.

    https://azure.github.io/AppService/2021/09/22/2021-Managing-ASD


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.