1234567891011 |
- def get_queue_service_client(parameters):
- tenant_id = parameters.get('azure_tenant_id')
- client_id = parameters.get('azure_client_id')
- secret = parameters.get('azure_client_secret')
- account_name = parameters.get('storage_account_name')
- token_credential = ClientSecretCredential(
- tenant_id, client_id, secret)
- queue_service_client = QueueServiceClient(
- account_url="https://%s.queue.core.windows.net" % account_name,
- credential=token_credential)
- return queue_service_client
|