Allow any string in DNS Record Sets
Creating a A Record in the form of "foo.master.my.domain.com" results in an error on Azure Stack.
It seems the problem is the ".master." part, "foo.masterli.my.domain.com" works great.
This problem occures when creating a DNS record set via the Azure Stack Hub Portal within a DNS Zone Object, the Errormessage is "Error: error".
When using the Azure Stack API (using the Azure API docs located here: https://docs.microsoft.com/en-us/rest/api/dns/recordsets/createorupdate) via python, the response is a HTTP 404:
msrestazure.azure_exceptions.CloudError: 404 Client Error: Not Found for url: https://management.stack.my.domain.com/subscriptions/0xdeadbeef-subscription-id/resourceGroups/myResourceGroup/providers/Microsoft.Network/dnsZones/mydnszone.stack.my.domain.com/A/foo.master?api-version=2016-04-01
The old API version seen in the request was the only one that worked.
It should be possible to use any form of hostname or document restrictions. And give a meaningful error in any case!
Sravya Antharam commented
Hello, there are no restrictions on any special characters or words. I have tested it in my own environment and I am not seeing the same errors. Are you seeing this on all DNS zones in the subscription? On other subscriptions?