Azure functions: time triggered functions get ModuleNotFoundError error after SKU change

Diana Rimsane 5 Reputation points
2023-08-22T10:25:42.27+00:00

Hello,

I have python functions which were working fine before we decided to upgrade the SKU to Premium v3 P2V3.

I deploy functions with zip method. The issue I'm facing now is:

  1. Manually triggered functions executes as expected;
  2. Time triggered functions return errors "Result: Failure Exception: ModuleNotFoundError: No module named 'requests'. Please check the requirements.txt file for the missing module."

Both HTTP and Time triggers uses same libraries, and they are stated in requirement.txt. Again, it was working as expected before migration to new SKU.

I have tried:

  1. Re-deploy
  2. Function restarts
  3. Updated requirement.txt (added module versions)

Any possible solutions?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Diana Rimsane 5 Reputation points
    2023-08-22T12:49:31.0366667+00:00

    It seems the only way is to re-create functions with time triggers. (At least it worked for me)

    1 person found this answer helpful.

Your answer

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