azure_clients_8.py 550 B

12345678910111213
  1. def get_datalake_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. credentials = ServicePrincipalCredentials(
  7. client_id=client_id,
  8. secret=secret,
  9. tenant=tenant_id)
  10. datalake_client = DataLakeStoreAccountManagementClient(credentials,
  11. subscription_id)
  12. return datalake_client