Azure functions scheduled trigger not firing

Chengaiah, Sarvepalli 20 Reputation points
2025-02-24T09:02:26.73+00:00

Dear All,

I have setup an Azure function on Scheduled trigger with %SCHEDULE% specified in the environment variable.

I have scheduled it to execute on Every Monday @9AM UTC. Here is the relevant cron expression - 0 0 8 * * 1

During testing, the first invocation happened fine, for instance it got fired for the first time. However, the subsequent invocations are not happening.

Initial observation is that there are some files in the storage account related to this job in Leased state, I am not sure if that is blocking the invocation as shown below.

User's image

If this is the cause of concern, what should be done to avoid this behavior.

Below is the code block mentioning the configuration.

@app.timer_trigger(schedule="%SCHEDULE%", arg_name="myTimer", run_on_startup=False,
              use_monitor=False) 
def monitor_costs_trigger(myTimer: func.TimerRequest) -> None:
	pass # Business logic here.

Did any of you faced a similar scenario ?

Any leads would be appreciated 🙂

Best Regards,

Chengaiah

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

Accepted answer
  1. RithwikBojja 705 Reputation points Microsoft External Staff
    2025-03-06T03:58:40.68+00:00

    Hi @Chengaiah, Sarvepalli,

    As your using Y1 plan, which means consumption plan. It happens because of the Cold Start of the Function apps. So when you open the function app and check then the function gets triggered. If you are using Basic plans rather than premium or dedicated, you need to make sure function is always warm.

    To keep function warm, you can use timer trigger function with 5 minutes or less than 5 minutes interval as dummy function which always runs and make sure that function is warm.

    Else in higher plan you have Always On Option in Configuration (Inside general settings) which keeps the function app always warm and working:

    enter image description here

    For further information refer Ms-Blog and Doc.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment


0 additional answers

Sort by: Most 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.