2

ISSUE

I am trying to setup my UTC CRON job in my Azure Function App to run based on EST/EDT timezone.

My thought is that you enter in your CRON time for your desired timezone, and then via the Azure portal set the configuration option WEBSITE_TIME_ZONE to America/New_York (see image that shows Azure Function is running Linux and not Windows).

enter image description here enter image description here

MORE INFO

According to the below, 08:30 UTC should be 04:30 EDT currently. So that is when I am expecting the monitor to run. It is still running via the CRON job at 08:30 UTC instead of 08:30 Eastern time (04:30 EDT).

https://www.freeconvert.com/time/utc-to-est

enter image description here

Using Python enter image description here

1

2 Answers 2

4

As per July 2022, this is not supported for Linux Function App running on a consumption plan (see documentation):

WEBSITE_TIME_ZONE is not currently supported on the Linux Consumption plan.

Sign up to request clarification or add additional context in comments.

Comments

1

According to Microsoft-Documentation it says,

In configuration add app settings WEBSITE_TIME_ZONE and set value to America/New_York

WEBSITE_TIME_ZONE is not currently supported on the Linux Consumption plan.

enter image description here

Then save it

enter image description here

Output:

You get the desired output in Desired Time Zone

enter image description here

Taken References from:

Update: Done in Linux plan only

enter image description here

3 Comments

I am using the Linux plan. So this answer is not a answer.
I have reproduced in linux plan only, you can check the operating system and i have updated my answer to show that
@RithwikBojja - You are using the P1v2 dedicated app service plan & not the serverless/consumption tier and hence it is working for you. As per the documentation here - learn.microsoft.com/en-us/azure/azure-functions/… , it is not supported.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.