Browse Source
Use --value= for add-record command (Issue #836 )
Use '--value=' instead of '-v' to allow Azure CLI to process TXT record tokens that start with special characters (in particular, a dash character). Proposed fix for Issue #836 .
pull/837/head
Luke Mikluch
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
dns_scripts/dns_add_azure
@ -37,4 +37,4 @@ recordset="_acme-challenge.${fulldomain/.$zone_id/}"
# E.g. domain = *.sub.example.com the recordset is _acme-challenge.sub
# domain = example.com the record set is _acme-challenge
[[ "$recordset" == "_acme-challenge.$fulldomain" ]] && recordset="_acme-challenge"
az network dns record-set txt add-record -g "$AZURE_RESOURCE_GROUP" -z "$zone_id" -n "$recordset" -v "$token"
az network dns record-set txt add-record -g "$AZURE_RESOURCE_GROUP" -z "$zone_id" -n "$recordset" --value= "$token"