MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.31k stars 21.49k forks source link

Azure Function timer trigger unclear on v2 doc #111764

Open jacobjiangwei opened 1 year ago

jacobjiangwei commented 1 year ago

[Enter feedback here] I found hard to understand what's the things needs to be done to make a function timer trigger here.

All the chatgpt is giving v1 answer where need function.json some chatgpt v2 is always giving same official doc answer which is quite hard to understand.

why does it has to be main function? can it be just normal functions? what's the code needs to add as decorator? Is it just ", timer: func.TimerRequest" as part of function parameter? what's the repeat schedule about?

Can I write a Http Trigger function, and every time it get called, it will run a function 5 minutes later?

E.g. I want to write a JSON to database and I want to trigger 5 minutes later delete that json ? How to do it?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

AjayBathini-MSFT commented 1 year ago

@jacobjiangwei Thanks for your feedback! We will investigate and update as appropriate.

mxmo0rhuhn commented 9 months ago

Moreover, the python documentation links to C# and node snippets