azure_clients_5.py 480 B

1234567891011
  1. def get_dns_ops_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_ops_client = DnsManagementClient(token_credential,
  9. subscription_id)
  10. return dns_ops_client