CmdID / az / az network / az network dns / az network dns record-set / az network dns record-set ns
az network dns record-set ns add-record
Add an NS record. Azure CLI reference
1 example 4 options Its page in the Azure CLI reference
Examples
Add an NS record.
az network dns record-set ns add-record -g MyResourceGroup -z www.mysite.com -n MyRecordSet -d ns.mysite.comIdentify-gName of resource group.-zThe name of the zone.-nThe name of the record set relative to the zone.-dName server domain name.Options
--if-none-matchCreate the record set only if it does not already exist.--record-set-name, -nThe name of the record set relative to the zone.--subscriptionid, -sSubscription id to add name server record--ttlRecord set TTL (time-to-live)