CmdID / az / az network / az network private-dns / az network private-dns record-set / az network private-dns record-set mx
az network private-dns record-set mx remove-record
Remove an MX 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.
1 example 2 options Its page in the Azure CLI reference
Examples
Remove an MX record from its record set.
az network private-dns record-set mx remove-record -g MyResourceGroup -z www.mysite.com -n MyRecordSet -e mail.mysite.com -p 10Identify-gName of resource group.-zThe name of the Private DNS zone.-nThe name of the record set relative to the zone.-eExchange metric.-pPreference metric.Options
--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.