I solved it by myself. The application setting variable can be used in the code using % for example, "schedule" : %schedule%
How to Schedule Python Function Apps at Different Times for Development and Production
Hi,
I want to run my python azure function at different times in the Dev and Prod environments.
First Method:
I attempted to create an Azure configuration variable and feed it through a function.json file, as seen below
This method is not working. Python function does not run at all when I deploy it.
Second Method:
I added two binding variables in function.json as seen below. Then, with os.environ["ENVIRONMENT"], I choose the corresponding binding variable, for instance myTimerDev for the dev environment.
At python side below code
The Python code is not running, though.
Could you kindly let me know what I am missing or if there is a way for me to have two schedules that run based on the environment?