Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

208
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda