Azure function gives “The 'code' query parameter provided in the HTTP request did not match the expected value.”

為{幸葍}努か 提交于 2019-12-01 22:34:07

I ran into this with a generic web hook function. The workaround I found was:

  1. Go to the Function app page in the Azure portal
  2. Select your app - You should see the menu with options "Develop", "Integrate", "Manage" and "Monitor"
  3. Select "Manage"
  4. There are two groups of keys - Function keys and Admin keys. The default Admin key was being used, so I changed the "code" parameter in my query to use the default Function key.

If that still doesn't work, you might want to try renewing the keys or adding a new one.

Goto yourfunction->manage->functionkey->default -click on the copy link under actions

Just appending code

https://{functionappName}.azurewebsites.net/api/{functionName}?code={defaultfunctionkey}

Hi this workaround worked for me

Hope it helps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!