12345678910111213 |
- def get_datalake_client(parameters):
- tenant_id = parameters.get('azure_tenant_id')
- client_id = parameters.get('azure_client_id')
- secret = parameters.get('azure_client_secret')
- subscription_id = parameters.get('azure_subscription_id')
- credentials = ServicePrincipalCredentials(
- client_id=client_id,
- secret=secret,
- tenant=tenant_id)
- datalake_client = DataLakeStoreAccountManagementClient(credentials,
- subscription_id)
- return datalake_client
|