_azure_rest GET "https://management.azure.com/subscriptions/$subscriptionId/providers/Microsoft.Network/dnszones?\$top=500&api-version=2017-09-01""""$accesstoken"
# Find matching domain name in Json response
while true;do
h=$(printf"%s""$domain"| cut -d . -f $i-100)
h=$(printf"%s""$domain"| cut -d . -f "$i"-100)
_debug2 "Checking domain: $h"
if[ -z "$h"];then
#not valid
@ -378,7 +378,7 @@ _get_root() {
#create the record at the domain apex (@) if only the domain name was provided as --domain-alias