## Per https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits#dns-limits you are limited to 100 Zone/subscriptions anyways
##
_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 is Json response
# Find matching domain name in Json response
while true;do
h=$(printf"%s""$domain"| cut -d . -f $i-100)
_debug2 "Checking domain: $h"
@ -328,7 +328,7 @@ _get_root() {
fi
if _contains "$response""\"name\":\"$h\"" >/dev/null;then