Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

adding function app settings bicep template and updating deploy.py #1973

Conversation

AdamL-Microsoft
Copy link
Contributor

@AdamL-Microsoft AdamL-Microsoft commented May 24, 2022

Summary of the Pull Request

This adds app settings for all dotnet and python functions to automatically disable (AzureWebJobs.$FUNCTION.Disabled=1) all dotnet functions and enable all python functions in their corresponding function apps

To enable dotnet functions at deployment time, deploy.py was updated with an argument '--enable_dotnet' that accepts a space separated list of dotnet python functions to disable while enabling the dotnet function of the same name (except pascal cased names for dotnet vs python snake cased names)

example:

./deploy.py --enable_dotnet tasks webhooks pool

This would enable the Tasks, Webhooks, and Pool functions in dotnet and turn these off in python

PR Checklist

Info on Pull Request

added:

src/deployment/bicep-templates/function-settings-disabled-apps.bicep

updated:

src/deployment/azuredeploy.bicep
src/deployment/bicep-templates/function-settings.bicep
src/deployment/deploy.py

…or toggling function states through enable_dotnet argument
@AdamL-Microsoft AdamL-Microsoft merged commit 29fbb28 into microsoft:main May 25, 2022
@AdamL-Microsoft AdamL-Microsoft deleted the enable-specific-dotnet-functions branch May 25, 2022 16:30
@AdamL-Microsoft AdamL-Microsoft self-assigned this May 27, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jun 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants