def get_blob_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) blob_service_client = BlobServiceClient( account_url="https://%s.blob.core.windows.net" % account_name, credential=token_credential) return blob_service_client