Azure Function python ModuleNotFoundError from Visual Studio Code

I was working on creating an Azure Function to download an image from Azure Blob Storage and return certain EXIF values. I had loaded some modules but for some reason they weren’t functioning properly in the Azure Function once deployed. I found out that I needed to update my requriements.txt file via pip (after much digging).

Here’s what you run, in the terminal of Visual Studio Code:

pip freeze > requirements.txt

THEN… proceed to deploy your function into Azure Functions.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s