I'm using Azure's Resource Groups. I've created a group, and now I'm trying to add a Public IP Address, and I want the ReverseFqdn, which is a child of DnsSettings, to be set.
I am trying this command:
New-AzureRmPublicIpAddress -AllocationMethod Static -ResourceGroupName MySandboxRG1 -ReverseFqdn woodswild.com -Name MySandboxRG1PIP -Location "Central US" -DomainNameLabel mysandboxrg1dns
But that gives me this error message:
I've read the error message a good 20 times, and I'm not making sense of it. If I leave off this parameter:
-ReverseFqdn woodswild.com
Than it works. But, I of course, the ReverseFqdn is not set. If I then try to set it after-the-fact like this:
$ip =get-AzureRmPublicIpAddress -Name MySandboxRG1PIP -ResourceGroupName MySandboxRG1
$ip.DnsSettings += @{ReverseFqdn = "woodswild.com"}
Set-AzureRmPublicIpAddress -PublicIpAddress $ip
I get this: