Azure / Azure/azure-cli

az network dns zone create --tags question

Open
#16,820 5 comments 0 reactions 1 assignee Claimed by @msyyc View on GitHub
act-quality-productivity-squad Network - DNS Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

I am trying to create new DNS zone by following [documentation ](https://docs.microsoft.com/en-us/cli/azure/network/dns/zone?view=azure-cli-latest#az_network_dns_zone_create). No tag been set. Sharing the results for your validation

`az network dns zone create -g RGNAME -n DNSZONENAME --tags ms:resource:usage=cloudshell`

**Response received**

`{
"etag": "******",
"id": "/subscriptions/******/resourceGroups/******/providers/Microsoft.Network/dnszones/******.com",
"location": "global",
"maxNumberOfRecordSets": 10000,
"name": "******.com",
"nameServers": [
"ns1-08.azure-dns.com.",
"ns2-08.azure-dns.net.",
"ns3-08.azure-dns.org.",
"ns4-08.azure-dns.info."
],
"numberOfRecordSets": 2,
"registrationVirtualNetworks": null,
"resolutionVirtualNetworks": null,
"resourceGroup": "******",
"tags": {},
"type": "Microsoft.Network/dnszones",
"zoneType": "Public"
}`

**JSON Reqeust**

`"submissionTimestamp": "******",
"subscriptionId": "******",
"tenantId": "******",
"properties": {
"requestbody": "{\"location\":\"global\",\"tags\":{\"ms:resource:usage\":\"cloudshell\"},\"properties\":{\"zoneType\":\"Public\"}}",
"eventCategory": "Administrative",
"entity": "/subscriptions/******/resourceGroups/******/providers/Microsoft.Network/dnsZones/******.com",
"message": "Microsoft.Network/dnsZones/write",
"hierarchy": "******"
},`

**JSON Response**
`"submissionTimestamp": "******",
"subscriptionId": "******",
"tenantId": "******",
"properties": {
"statusCode": "Created",
"serviceRequestId": "******",
"responseBody": "{\"id\":\"/subscriptions/******/resourceGroups/******/providers/Microsoft.Network/dnszones/******.com\",\"name\":\"******.com\",\"type\":\"Microsoft.Network/dnszones\",\"etag\":\"******\",\"location\":\"global\",\"tags\":{},\"properties\":{\"maxNumberOfRecordSets\":10000,\"maxNumberOfRecordsPerRecordSet\":null,\"nameServers\":[\"ns1-08.azure-dns.com.\",\"ns2-08.azure-dns.net.\",\"ns3-08.azure-dns.org.\",\"ns4-08.azure-dns.info.\"],\"numberOfRecordSets\":2,\"serveRecordsBelowDelegation\":null,\"zoneType\":\"Public\"}}",
"eventCategory": "Administrative",`

As per [tag limitation document](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/tag-resources#limitations), colon [:] character are not mentioned as doesn't support

Thanks
Rajakumar

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

**Describe the bug**

**To Reproduce**

**Expected behavior**

**Environment summary**

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.