I have successfully imported some DNS zones ending with a .org top-level domain using the following code:
$domain = 'example.org'
$resourceGroup = 'dns'
$domainTransferCode = '<auth-code-here>';
$resourceProperties = @{
'Consent' = @{
'AgreementKeys' = @("DNPA","DNTA");
'AgreedBy' = ((Invoke-WebRequest ifconfig.me/ip).Content.Trim());
'AgreedAt' = (Get-Date -format u);
};
'authCode' = $domainTransferCode;
'Privacy' = 'true';
'autoRenew' = 'true';
}
ConvertTo-Json -Compress $resourceProperties | Out-File -Encoding UTF8 transferdns.json
az resource create --name $domain --resource-group $resourceGroup --location 'Global' --resource-type 'Microsoft.DomainRegistration/domains' --api-version '2015-02-01' --properties '@transferdns.json'
According to the documentation on the Microsoft website it also supports the nl top-level domain:
The following top-level domains are supported by App Service domains: com, net, co.uk, org, nl, in, biz, org.uk, and co.in.
When I try to use the same script and update my domain to example.nl
(and also use the proper transfer-code), then I get the following error:
BadRequestError: Operation failed with status: 'Bad Request'. Details: 400 Client Error: Bad Request for url: https://management.azure.com/subscriptions/xxx/resourcegroups/dns/providers/Microsoft.DomainRegistration/domains/example.nl?api-version=2015-02-01
It doesn't seem to support to transfer an nl TLD using this script. Maybe I need different agreement keys, privacy options, ... but I can't find any documentation on how to do this.