Beispiel #1
0
        internal virtual async Task <AzureDnsClientWrapper> InitializeDnsClient(string tenantId, string clientId, string clientSecret, string subscriptionId, string cloud)
        {
            var dnsClient = new AzureDnsClientWrapper();
            await dnsClient.Initialize(tenantId, clientId, clientSecret, subscriptionId, cloud);

            return(dnsClient);
        }
Beispiel #2
0
        public async Task Initialize(Options opts)
        {
            _envSubscriptionId = ConfigManager.GetEnvVarRequired(EnvSubscriptionId);
            _envResourceGroup  = ConfigManager.GetEnvVarRequired(EnvResourceGroup);
            _envTenantId       = ConfigManager.GetEnvVarRequired(EnvTenantId);
            _envClientId       = ConfigManager.GetEnvVarRequired(EnvClientId);
            _envClientSecret   = ConfigManager.GetEnvVarRequired(EnvClientSecret);
            _envCloud          = ConfigManager.GetEnvVarOrDefault(EnvCloud, "AzureCloud");

            _dnsClient = await InitializeDnsClient(_envTenantId, _envClientId, _envClientSecret, _envSubscriptionId, _envCloud);
        }