I am trying to setup following tags in Azure DNS zone by portal and by Azure PowerShell, the results got success, but the value not set. Have any one came across this issue?
Tried with following Az PowerShell command
$tags=@{"ms:resource:usage"="CloudShell"}
New-AzTag -ResourceId /subscriptions/***/resourceGroups/RGNAME/providers/Microsoft.Network/dnszones/dnszone.com -Tag $tags
Json Request
"submissionTimestamp": "*******",
"subscriptionId": "******",
"tenantId": "****",
"properties": {
"requestbody": "{\"tags\":{\"ms:resource:usage\":\"CloudShell\"}}",
"eventCategory": "Administrative",
"entity": "/subscriptions/******/resourceGroups/*****/providers/Microsoft.Network/dnszones/dnszone.com.com",
"message": "Microsoft.Network/dnszones/write",
Json Response
"submissionTimestamp": "*******",
"subscriptionId": "*******",
"tenantId": "*******",
"properties": {
"statusCode": "OK",
"serviceRequestId": "*******",
"responseBody": "{\"id\":\"/subscriptions/***/resourceGroups/***/providers/Microsoft.Network/dnszones/dnsZone.com\",\"name\":\"dnsZone.com\",\"type\":\"Microsoft.Network/dnszones\",\"etag\":\"00000019-0000-0000-d1ab-7b0bbcfbd601\",\"location\":\"global\",\"tags\":{},\"properties\":{\"maxNumberOfRecordSets\":10000,\"maxNumberOfRecordsPerRecordSet\":null,\"nameServers\":[\"ns1-07.azure-dns.com.\",\"ns2-07.azure-dns.net.\",\"ns3-07.azure-dns.org.\",\"ns4-07.azure-dns.info.\"],\"numberOfRecordSets\":2,\"serveRecordsBelowDelegation\":null,\"zoneType\":\"Public\"}}",
"eventCategory": "Administrative"
As per Microsoft, the fix will not be released in the first half of this year. Suggestion not to use ":" in the tag names. Sharing reply from the Microsoft
Troubleshooting we’ve done:
Root Cause: It is not supported to add Tag value within ":" for DNS zone.
Suggestions: Due to the fix process on product side involves some issues and will not be released in the first half of this year. Current suggestion is to not use ":" in the tag names. Our product team will also put this limitation in the official document. Sincerely apologies for any inconvenience cause at this moment.