An Azure service that provides an event-driven serverless compute platform.
Imported module not reading configuration until updated | Azure Function Powershell V3
Hey guys,
So I have an azure function project with multiple powershell scripts. Until now everything was working fine, we didn't make any changes.
Suddenly, after new year, we detected the day 04/01/2023 that our scripts were formatting dates incorrectly. Same behavior as if the "WEBSITE _ TIME _ ZONE" parameters was not being read. When using .ToLocalTime() it was behaving as UTC (Default value) instead of our timezone "W. Europe Standard Time"
We first detected it in one of our timed scripts, I just updated something on the .psm1 file to do some debugging and after uploading the changes, it now behaved as if the timezone was correct. The script suddenly worked again.
Strange behavior, but we were treating it as some random azure error. This was until we noticed that another timer script that was sending emails with some expiration date warnings was sending dates incorrectly too.
This happened until I changed something (1 line of code to send the email to a test email instead of the users) and uploading the changes. Just after uploading that scripts, it's started behaving normally again.
¿Any ideas on what could be happening to make the script loose the timezone configuration?
Thank you.