Azure function throws module not found error

Oladoja Niyi 5 Reputation points
2023-09-28T07:35:11.4666667+00:00

I'm trying to deploy azure function using terraform and I tried deploying using website_run_from_package=blob_url config but it's not installing modules specified in requirements.txt, same function works fine when I deployed it with vscode without any dependency issue.

Screenshot from 2023-09-28 08-24-52

Screenshot from 2023-09-28 08-26-34

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Oladoja Niyi 5 Reputation points
    2023-09-29T11:17:48.9366667+00:00

    I was able to figure it out by installing the required dependencies at the root level of the function before zipping it and deploying.

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.