I have created a Azure HTTP Trigger function app, and i will consuming that as a rest api in my .Net application, but problem i am facing is, few days once i see keys are getting changed and my .Net app is failing to consume that function app. What is the reason for this key change? what is the solution for this?
Asked
Active
Viewed 1,600 times
2
-
So you're saying the function key that's passed to your function to authenticate the calling app is changing? On it's own? – Skin Mar 10 '22 at 09:26
-
Do you see anything logged in the activity log of the function app? – Anthony C Mar 10 '22 at 20:24
-
yes its changing on its own, in activity log i see, Restart Web App & List Web Apps Functions Host Keys thats it.. – Manjunath G Mar 11 '22 at 05:47
1 Answers
0
If the auto-generated keys for the Azure Function app change once in a few days automatically, then I would suggest you create the new function key manually and use it in the Azure Function URL.
That does not change until you replace the existing value manually of that key
and you can also auto-generate the new key for the key you created if you want a random generated value.