azure_clients_1.py 459 B

12345678910
  1. def get_resourcegroup_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. resourcegroup_client = ResourceManagementClient(token_credential, subscription_id)
  9. return resourcegroup_client