azure_clients_4.py 475 B

1234567891011
  1. def get_dns_client(parameters):
  2. tenant_id = parameters.get('azure_tenant_id')
  3. client_id = parameters.get('azure_client_id')
  4. secret = parameters.get('azure_client_secret')
  5. subscription_id = parameters.get('azure_subscription_id')
  6. token_credential = ClientSecretCredential(
  7. tenant_id, client_id, secret)
  8. dns_client = PrivateDnsManagementClient(token_credential,
  9. subscription_id)
  10. return dns_client