I'm a beginner with Azure App Function. I want my python code to run every day automatically in a specific hour (1AM) and App function with the tool 'timer trigger' could allow it.
I created my app function in VS code and it successfully appeared on my azure account. BUT I can't visualize my python code or the timer trigger I try to implement.
Here is a part of my function_app.py :
import azure.functions as func
app = func.FunctionApp()
@app.timer_trigger(schedule="0 * * * * *", arg_name="myTimer", run_on_startup=False,
use_monitor=False)
def run_api_function():
#My code displayed to call an API
def timer_trigger_test(myTimer: func.TimerRequest) -> None:
if myTimer.past_due:
logging.info('The timer is past due!')
run_api_function()
logging.info('Python timer trigger function executed.')
I would like to know the step to implement my code and I welcome any advices !
About what I already tried, I have succesffuly start my code in VSCode in local with azure.
I tried to deploy it many times but it never appeared in the files of my app function in azure webpage.
It also not appeared in the azure ressources displayed in VScode.