Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

Azure CLI set CNAME

$
0
0

I'm following the instructions on https://azure.microsoft.com/en-us/documentation/articles/dns-getstarted-create-recordset-cli/ to create a CNAME record I executed the sample commands as shown below which are working copies of the page above in section 'Create a CNAME record set with a single record' However you can see the 2nd command fails with 'Cannon read property 'cname' of undefined $ azure network dns record-set create -g 'foo' foo.xyz 'test-cname' CNAME --ttl 300 info: Executing command network dns record-set create + Creating DNS record set 'test-cname' of type 'CNAME' info: network dns record-set create command OK

$ azure network dns record-set add-record 'foo' foo.xyz test-cname CNAME -c 'www.contoso.com' info: Executing command network dns record-set add-record + Looking up the dns zone 'foo.xyz' + Looking up the DNS Record Set 'test-cname' of type 'CNAME' error: Cannot read property 'cname' of undefined error: network dns record-set add-record command failed

Anyone know why, or the correct syntax to set a CNAME value?


Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>