CmdID / az / az network / az network private-dns / az network private-dns record-set / az network private-dns record-set txt
az network private-dns record-set txt remove-record
Remove a TXT 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 a TXT record from its record set.
az network private-dns record-set txt remove-record -g MyResourceGroup -z www.mysite.com -n MyRecordSet -v Owner=WebTeamIdentify-gName of resource group.-zThe name of the Private DNS zone.-nThe name of the record set relative to the zone.-vSpace-separated list of text values which will be concatenated together.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.