I'm trying to generate sas token for accessing Azure storage. While referencing to online samples, I came accross this sample code snippet:
from azure.storage.blob import BlockBlobService, BlobPermissions, generate_account_sas
However, it fails to find generate_account_sas module. I suspected it could be due to Azure versions, and tried pip uninstall azure, then pip install azure-storage-blob==12.9.0 azure-core==1.21.1. This allows me to access in a different manner though:
from azure.storage.blob._shared_access_signature import generate_account_sas
However, it would also require me to revise all those BlockBlobService related lines in my code as well.
My question is, how can I use generate_account_sas in the form of my original way, without uninstalling and re-installing those packages?