Tany
Tany

Reputation: 1322

Getting key to cross call a http trigger azure function

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

Answers (1)

Mikhail Shilkov
Mikhail Shilkov

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

Related Questions