CmdID / az / az network / az network dns / az network dns record-set / az network dns record-set txt
az network dns record-set txt add-record
Add a TXT record. Azure CLI reference
1 example 3 options Its page in the Azure CLI reference
Examples
Add a TXT record.
az network dns record-set txt add-record -g MyResourceGroup -z www.mysite.com -n MyRecordSet -v Owner=WebTeamIdentify-gName of resource group.-zThe name of the zone.-nThe name of the record set relative to the zone.-vSpace-separated list of text values which will be concatenated together.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.--ttlRecord set TTL (time-to-live)