Setting ReverseFqdn in New-AzureRmPublicIpAddress
In order to set the ReverseFqdn for a new public IP the ReverseFqdn needs to be already registered to an Azure IP This means that the workflow for creating a new ReverseFqdn for a new service is very convoluted.
- call New-AzureRmPublicIpAddress without a ReverseFqdn
- register the IP address with the Fqdn you require
- call New-AzureRmPublicIpAddress with ReverseFqdn registered in 2
- register the IP address allocated in 3 to the Fqdn
- delete IP address registered in 2
There needs to be the ability to create a verified domain name that can then be authorised to create any ReverseFqdn. So that if awverify.example.com points to an subscription level azure resource, it will allow any other ReverseFqdn to be created. (I realise this is probably outside of the scope of Azure-Powershell specifically! - but I'm hoping for a workaround!)
Can you explain how to register the IP address with the Fqdn in setup 2? Is there a command for that or is this at the registar for the domain?
@crazyonerob I used the ReverseFqdn property on Microsoft.Network/publicIPAddresses in a resource template
"properties": {
"publicIPAllocationMethod": "Dynamic",
"dnsSettings": {
"domainNameLabel": "[variables('PublicDNS2')]",
"ReverseFqdn": "[concat(parameters('vmName2'), '.', variables('domainname'))]"
}
Can You give please Azure Powershell commands for all 5 steps?
I was having similar troubles setting the Reverse FQDN until I noticed in the powershell source code it requires a DomainNameLabel to also be specified
@MartinsBonders @feedthedogs there is a solution on Stackoverflow - http://stackoverflow.com/questions/35092478/reverse-dns-with-static-ip-while-using-azure-resource-manager