This repository has been archived by the owner on Nov 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding function app settings bicep template and updating deploy.py (#…
…1973) * adding function app settings bicep templates and updating deploy.py for toggling function states through enable_dotnet argument * fixes #1948
- Loading branch information
1 parent
6e84fd6
commit 29fbb28
Showing
4 changed files
with
227 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/deployment/bicep-templates/function-settings-disabled-apps.bicep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
param functions_disabled_setting string | ||
|
||
param allFunctions array | ||
|
||
var disabledFunctions = [for f in allFunctions: 'AzureWebJobs.${f}.Disabled' ] | ||
|
||
var disabledFunctionsAppSettings = { | ||
'${disabledFunctions[0]}' : functions_disabled_setting | ||
'${disabledFunctions[1]}' : functions_disabled_setting | ||
'${disabledFunctions[2]}' : functions_disabled_setting | ||
'${disabledFunctions[3]}' : functions_disabled_setting | ||
'${disabledFunctions[4]}' : functions_disabled_setting | ||
|
||
'${disabledFunctions[5]}' : functions_disabled_setting | ||
'${disabledFunctions[6]}' : functions_disabled_setting | ||
'${disabledFunctions[7]}' : functions_disabled_setting | ||
'${disabledFunctions[8]}' : functions_disabled_setting | ||
'${disabledFunctions[9]}' : functions_disabled_setting | ||
|
||
'${disabledFunctions[10]}' : functions_disabled_setting | ||
'${disabledFunctions[11]}' : functions_disabled_setting | ||
'${disabledFunctions[12]}' : functions_disabled_setting | ||
'${disabledFunctions[13]}' : functions_disabled_setting | ||
'${disabledFunctions[14]}' : functions_disabled_setting | ||
|
||
'${disabledFunctions[15]}' : functions_disabled_setting | ||
'${disabledFunctions[16]}' : functions_disabled_setting | ||
'${disabledFunctions[17]}' : functions_disabled_setting | ||
'${disabledFunctions[18]}' : functions_disabled_setting | ||
'${disabledFunctions[19]}' : functions_disabled_setting | ||
|
||
'${disabledFunctions[20]}' : functions_disabled_setting | ||
'${disabledFunctions[21]}' : functions_disabled_setting | ||
'${disabledFunctions[22]}' : functions_disabled_setting | ||
'${disabledFunctions[23]}' : functions_disabled_setting | ||
'${disabledFunctions[24]}' : functions_disabled_setting | ||
|
||
'${disabledFunctions[25]}' : functions_disabled_setting | ||
'${disabledFunctions[26]}' : functions_disabled_setting | ||
'${disabledFunctions[27]}' : functions_disabled_setting | ||
'${disabledFunctions[28]}' : functions_disabled_setting | ||
'${disabledFunctions[29]}' : functions_disabled_setting | ||
|
||
'${disabledFunctions[30]}' : functions_disabled_setting | ||
'${disabledFunctions[31]}' : functions_disabled_setting | ||
'${disabledFunctions[32]}' : functions_disabled_setting | ||
'${disabledFunctions[33]}' : functions_disabled_setting | ||
'${disabledFunctions[34]}' : functions_disabled_setting | ||
|
||
'${disabledFunctions[35]}' : functions_disabled_setting | ||
} | ||
|
||
output functions array = disabledFunctions | ||
output appSettings object = disabledFunctionsAppSettings | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters