Skip to content

Commit 91d55fd

Browse files
committed
Update function app settings
1 parent 6cdf8c5 commit 91d55fd

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

code/infra/function.tf

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,20 @@ resource "azapi_resource" "function" {
7070
},
7171
{
7272
name = "WEBSITE_RUN_FROM_PACKAGE"
73-
value = "1"
73+
value = "0"
7474
},
7575
{
7676
name = "PYTHON_ENABLE_WORKER_EXTENSIONS"
7777
value = "1"
7878
},
79+
{
80+
name = "ENABLE_ORYX_BUILD"
81+
value = "1"
82+
},
83+
{
84+
name = "SCM_DO_BUILD_DURING_DEPLOYMENT"
85+
value = "1"
86+
},
7987
{
8088
name = "AzureWebJobsStorage__accountName"
8189
value = azurerm_storage_account.storage.name
@@ -86,9 +94,10 @@ resource "azapi_resource" "function" {
8694
functionAppScaleLimit = 0
8795
functionsRuntimeScaleMonitoringEnabled = false
8896
ftpsState = "Disabled"
97+
healthCheckPath = var.function_health_path
8998
http20Enabled = false
9099
ipSecurityRestrictionsDefaultAction = "Deny"
91-
linuxFxVersion = "Python|${var.python_version}"
100+
linuxFxVersion = "Python|${var.function_python_version}"
92101
localMySqlEnabled = false
93102
loadBalancing = "LeastRequests"
94103
minTlsVersion = "1.2"

0 commit comments

Comments
 (0)