Azure function app uses NCronTab library to interpret the CRON expression.
you can test your expression here.
By default Azure function app uses UTC Timezone.

Now lets get to the point, before starting please check whether your function app is using Windows or Linux.

Using Azure portal

  1. Go to the azure function app configurations
  2. Add a new Configuration `WEBSITE_TIME_ZONE`
  3. For windows possible values listed here
  4. For Linux possible values listed here
  5. Save the configuration
  6. Done

Using PowerShell

  1. Run following command and add a new app settings, don’t forget to change the values (for windows, for Linux)
Update-AzFunctionAppSetting -Name <MyAppName> -ResourceGroupName <MyResourceGroupName> -AppSetting @{"WEBSITE_TIME_ZONE" = "CHANGE_THIS"}

If you face any issues or if you have any question please add a comment, and please don’t forget to follow me.

cheers🍻

--

--

Last year when I was working on a project I also came across same question, I did some research I manage to find few sources but all of them were outdated so I decided to create my own gist for that.

this contains all the countries and there states and this list will update automatically every month so you don’t have to worry about outdated data.

I am using geonames dumps to create this gist so if you find any incorrect data you can update at geonames side and it will reflect in next release.

Here you can find the gist.

--

--

Manish Tiwari

Manish Tiwari

Dot Net | DevOps | open source | Azure | AWS | GCP | Kubernetes | Docker