Search code examples
azureazure-storageazure-web-app-service

Azure Service Plan - Web app not working after time change


I couldn't read into my storage account from an azure function I run locally or remotely. I update the time in my pc (it hadn't updated when the time changed tonight) and it resolved to work locally but I still can't read remotely.

Can you please clarify how this works? My service plan, web app, azure function, storage account are all in the UK South. Since last night we are at British Summer time in UK south (UCT+1). I check the time for the web app in portal on console and shows UCT.

Ofc I want the web app to work at different regions. Do I need to update the web app time on console every time the time changes, do I need to change a setting for this to happen automatically because it's not setup by default, or should I make the change at service plane level so azure function and storage account also update? or do I need to change the WEB_TIMEZONE in my app, and if so to what time considering the user may run the web app from any region? thanks a bunch


Solution

  • Timezone refer to this doc. Add WEBSITE_TIME_ZONE in Configuration Settings on Azure can change the time.

    This is GMT + 1, use Central European Standard Time as the value of WEBSITE_TIME_ZONE. Yes, you need to change the time zone when needed. For 'you cannot read storage account', you need to add the settings of storage account on azure. Because the settings of local.settings.json will not be deploy to azure.(It is only for local.)