Azure Function App gives 401 for QA slot

Dhanush B L 0 Reputation points
2023-02-06T06:09:50.8433333+00:00

I am facing some weird issue from azure function app, i.e., the function app keys are getting changed too frequently (like i changed 20-30mins ago) and after sometimes when i make request to functions with valid key i'm getting 401. But this issue is not in PROD slot, only in QA slot

I have 2 environments DEV and STAGE in both i am facing the same issue, i have not done any modifications recently and moreover it was working perfectly few mins ago.

I tried the following things:-

  • Restarting the app (Didn't work)
  • Disabled the authentication from authentication blade in slot app
  • Tried checking changes from terraform plan, Showed no changes (Didn't work)
  • Refreshed several times (Didn't work)
  • Tried running the function from azure portal 'Test/Run' method using Master (HostKey), Default(Host key), Default(Function key) (Didn't work)
  • Googling

Possible solutions but not interested, because this was working earlier and changing approach is not a wise option:

  • Using our own host keys for the function app, but this method is a temporary fix and also its not supported in terraform

Few days back when Microsoft 365 service were down i faced the same issue while testing functions and along with that APIM resource was also behaving weirdly at that time by giving 401.

So please help me if anyone has faced this issue or any idea on this to resolve.Screenshot 2023-02-03 at 4.41.29 PM

Screenshot 2023-02-03 at 4.43.17 PM

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,321 questions
{count} votes