How to connect azure queue storage and azure blob storage with celery by sas token

Simon Liu 0 Reputation points
2023-06-26T20:29:50.8233333+00:00

I try to use Azure queue storage as my celery broker.

I have this kind of code:

app = Celery('myapp', broker='azurestoragequeues://:{sas_token}@{url}', backend='azureblockblob://:{another_sas_token}@{another_url}')

When I run celery -A myapp, I got this error:

'azure.storage.queue._shared.authentication.AzureSigningError: Incorrect padding'

I test the tokens on azure storage explorer and they work fine. I can access the storage of given token. The doc of celery only show how to build CELERY_BROKER_URL by account access key and name. But I only have sas token.

Azure Queue Storage
Azure Queue Storage
An Azure service that provides messaging queues in the cloud.
97 questions
{count} votes