You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the v3 programming model, you could set the disabled: false property in the function.json. With most of the function.json configuration being set in the trigger handlers, it feels strange not to have this option available (or do I remember this wrong?) . Apparently, I need to use environment settings.
Yeah environment variables should work. You can also wrap your function registration in an if cases directly in your code. One potential downside of this is that functions won't be listed at all when they're disabled this way.
We could potentially add a "disabled" flag when registering a function. This is not something that's supported yet, but let us know if you would like it:
the issue with environment variables is that http-trigger1 is a valid function name but does not generate a valid environment variable name when using that button, should the name of the function be limited to work well in the azure portal?
Investigative information
Please provide the following:
Repro steps
Provide the steps required to reproduce the problem:
Expected behavior
On deployment via Terraform, the HTTP functions should be enabled by default, but disabled when set via code
Actual behavior
Upon deployment, the Azure Functions are all enabled by default
Known workarounds
Related information
Provide any related information
Source
The text was updated successfully, but these errors were encountered: