From a5e60d5d05d83c40c682288c7f8fde486a532f30 Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Fri, 13 Mar 2020 02:08:58 +0300 Subject: [PATCH] azure: pass AZURE_CLIENT_SECRET_FILE to autorest.Authorizer (#1083) --- providers/dns/azure/azure.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/providers/dns/azure/azure.go b/providers/dns/azure/azure.go index 852c29332..8e2df1353 100644 --- a/providers/dns/azure/azure.go +++ b/providers/dns/azure/azure.go @@ -83,6 +83,9 @@ func NewDNSProvider() (*DNSProvider, error) { config := NewDefaultConfig() config.SubscriptionID = env.GetOrFile(EnvSubscriptionID) config.ResourceGroup = env.GetOrFile(EnvResourceGroup) + config.ClientSecret = env.GetOrFile(EnvClientSecret) + config.ClientID = env.GetOrFile(EnvClientID) + config.TenantID = env.GetOrFile(EnvTenantID) return NewDNSProviderConfig(config) }