Have you verified if azure-storage-blob
library version is compatible with your Python runtime?
You can check this by adding the library version explicitly in requirements.txt
:
azure-storage-blob==12.x.x # Replace with a compatible version number
Run pip show azure-storage-blob
in your local development environment and check the Azure Function App logs for installation details during deployment.
After updating requirements.txt
, restart the Function App to ensure the new dependencies are loaded. Clear any cached packages or artifacts if possible.
You can add more logging before the import line to see if any errors are logged just before the app fails:
logging.info("Starting import of BlobServiceClient")
from azure.storage.blob import BlobServiceClient
logging.info("Import successful")