RuiRomano / pbimonitor

MIT License
221 stars 83 forks source link

Token not refreshing if script is running for more than an hour #39

Open JamiePGE opened 1 year ago

JamiePGE commented 1 year ago

I am having an issue with the token expiring if the script is running for more than an hour. The script is processing entries fine then after an hour we start getting "Your access token has expired". See error message from transcript below.

TerminatingError(Invoke-RestMethod): "{"error":{"code":"Authentication_ExpiredToken","message":"Your access token has expired. Please renew it before submitting the request.","innerError":{"date":"2023-07-26T17:16:42","request-id":"","client-request-id":""}}}"

JamesDBartlett3 commented 8 months ago

@JamiePGE, have you tried adjusting the functionTimeout property in your Azure Function?