Reputation: 1322
I have a time triggered function which would need to invoke another http triggered function in the same function app. I do not want to open the function as anonymous. I would want it to Auth based on function or admin key.
How do I get either master key or (better) function key in the time triggered function to cross call the http triggered function ?
Upvotes: 1
Views: 226
Reputation: 35134
The easiest way is to put the key into App Settings of the timed function, and then read it at runtime, e.g. from Environment.GetEnvironmentVariable
.
Upvotes: 2