Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

210
Views
Update function.json of Azure function programmatically from different azure function function. | Nodejs

I am working on azure functions. I have two azure function one is http Api and the second one is timer trigger function hosted in same function app:

Function.json of timer trigger function :

{
  "bindings": [
    {
      "name": "myTimer",
      "type": "timerTrigger",
      "direction": "in",
      "schedule": "0 */1 * * * *"
    }
  ]
}

I want to below functionality :

  1. Change schedule : From function A at runtime I want to change the schedule time of timer function.

Ex: In above function.json schedule is "0 */1 * * * *" to "0 */5 * * * *" 2. Enable/Disable : I want to enable/ disable timer function from Function A. 3. Input : provide input also to the request.

Is there any way I can achieve above points programmatically ?

Thank You!

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Change schedule : From function A at runtime I want to change the schedule time of timer function.

  • Firstly, Schedule in functions is used only in Timer Trigger Function you can't use it in HTTP function so you can't change the schedule through HTTP Trigger Function you can refer this SO for further details.

  • Rather you can use Azure logic apps for changing the schedule value using logic apps for complete information here is the document for Azure Scheduler.

  • To enable or disable Azure function programmatically you need to change the format in app setting and add below code.

    AzureWebJobs.<FUNCTION_NAME>.Disabled : True

  • You need to add the above code in Function.JSON file for further details you can refer this document which includes complete information regarding enable/disable azure function.

  • Here is the output after testing in my local environment.

enter image description here

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!