How can we improve Microsoft Azure Functions?

Set environment variable override for AuthorizationLevel.Function key

When running within the Azure Functions Runtime inside of a Docker container, we can't use AuthorizationLevel.Function as there is no way to retrieve the key from the runtime. It'd be great if we could directly set a function key in our compose.yml as an environment variable. For deployment, we just leave the environment variable blank and the App Service can set the keys.

Related SO question:
https://stackoverflow.com/questions/52174892/how-to-set-authorzationlevel-per-an-environment-condition-when-running-csproj-fu

12 votes
Sign in
(thinking…)
Sign in with: oidc
Signed in as (Sign out)

We’ll send you updates on this idea

Matthew Morgan shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Sign in with: oidc
Signed in as (Sign out)
Submitting...
  • guitarrapc_tech commented  ·   ·  Flag as inappropriate

    Is it apply to AppService, too? I'm using Function Proxy and want to pass `function key` in Proxies.json, but currently there are no way to get key from environment variable.

Feedback and Knowledge Base