Hi @(SPUD) Martin Weiss ,
Thanks for the confirmation. Glad the issue is resolved.
I am summarizing the discussion and posting as answer.
Solution:
The issue appears to have resolved after completely tearing down and redeploying the Function App from scratch. After the redeployment, incoming HTTP requests were accepted and 401 Unauthorized responses no longer occurred.
In such cases, a sudden 401 on a Function App without any deployment or configuration changes can sometimes be caused by internal platform-level issues for example, corrupted configuration state or transient issues with app keys validation. Redeploying the Function App effectively resets the configuration state, which can resolve such issues.
If the issue reoccurs, you can you try adding the app setting ASPNETCORE_FORWARDEDHEADERS_ENABLED=true or
MICROSOFT_ASPNETCORE_HTTPOVERRIDES_IGNORE_UNKNOWN_PROXIES_WITHOUT_FOR=1 in the function app and run the function again.
Hope it helps!
Please do not forget to click "Accept the answer” and Yes, this can be beneficial to other community members.
If you have any other questions, let me know in the "comments" and I would be happy to help you.