I was able to publish my Function from Visual Studio 2 weeks ago. I made a minor change went to publish and received this error.
The attempt to publish the ZIP file through https://xxxxxxxxxxx.scm.azurewebsites.net/api/zipdeploy failed with HTTP status code Unauthorized.
Any ideas, I know the 2022 VS was upgraded to a new version last week.

Azure Portal=>Function App=>Settings=>Configuration=>General Settings before deploying the function:
Application Settings of my function app:


Portal:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With