|
@ -161,11 +161,11 @@ dns_azure_rm() { |
|
|
if [ "$AZUREDNS_MANAGEDIDENTITY" = true ]; then |
|
|
if [ "$AZUREDNS_MANAGEDIDENTITY" = true ]; then |
|
|
_info "Using Azure managed identity" |
|
|
_info "Using Azure managed identity" |
|
|
else |
|
|
else |
|
|
_info "You didn't ask to use Azure managed identity, checking service principal credentials" |
|
|
|
|
|
|
|
|
_info "You didn't ask to use Azure managed identity, checking service principal credentials or provided bearer token" |
|
|
AZUREDNS_TENANTID="${AZUREDNS_TENANTID:-$(_readaccountconf_mutable AZUREDNS_TENANTID)}" |
|
|
AZUREDNS_TENANTID="${AZUREDNS_TENANTID:-$(_readaccountconf_mutable AZUREDNS_TENANTID)}" |
|
|
AZUREDNS_APPID="${AZUREDNS_APPID:-$(_readaccountconf_mutable AZUREDNS_APPID)}" |
|
|
AZUREDNS_APPID="${AZUREDNS_APPID:-$(_readaccountconf_mutable AZUREDNS_APPID)}" |
|
|
AZUREDNS_CLIENTSECRET="${AZUREDNS_CLIENTSECRET:-$(_readaccountconf_mutable AZUREDNS_CLIENTSECRET)}" |
|
|
AZUREDNS_CLIENTSECRET="${AZUREDNS_CLIENTSECRET:-$(_readaccountconf_mutable AZUREDNS_CLIENTSECRET)}" |
|
|
|
|
|
|
|
|
|
|
|
if [ -z "$AZUREDNS_BEARERTOKEN" ]; then |
|
|
if [ -z "$AZUREDNS_TENANTID" ]; then |
|
|
if [ -z "$AZUREDNS_TENANTID" ]; then |
|
|
AZUREDNS_SUBSCRIPTIONID="" |
|
|
AZUREDNS_SUBSCRIPTIONID="" |
|
|
AZUREDNS_TENANTID="" |
|
|
AZUREDNS_TENANTID="" |
|
@ -192,6 +192,9 @@ dns_azure_rm() { |
|
|
_err "You didn't specify the Azure Client Secret" |
|
|
_err "You didn't specify the Azure Client Secret" |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
else |
|
|
|
|
|
_info "Using provided bearer token" |
|
|
|
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ -z "$AZUREDNS_BEARERTOKEN" ]; then |
|
|
if [ -z "$AZUREDNS_BEARERTOKEN" ]; then |
|
|