CmdID

CmdID / az / az network / az network dns / az network dns record-set / az network dns record-set ns

az network dns record-set ns remove-record

Remove an NS record from its record set. Azure CLI reference

By default, if the last record in a set is removed, the record set is deleted. To retain the empty record set, include --keep-empty-record-set.

2 examples 2 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Remove an NS record from its record set.

az network dns record-set ns remove-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.

Remove an NS record from its record set. (autogenerated)

az network dns record-set ns remove-record --keep-empty-record-set --nsdname ns.mysite.com --record-set-name MyRecordSet --resource-group MyResourceGroup --subscription MySubscription --zone-name www.mysite.comIdentify
--keep-empty-record-setKeep the empty record set if the last record is removed.
--nsdnameName server domain name.
--record-set-nameThe name of the record set relative to the zone.
--resource-groupName of resource group.
--subscriptionName or ID of subscription.
--zone-nameThe name of the zone.

Options

2 in the Azure CLI reference
--keep-empty-record-setKeep the empty record set if the last record is removed.
--record-set-name, -nThe name of the record set relative to the zone.