File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,10 @@ resource "azapi_resource" "function" {
117117 name = " DOCKER_SHM_SIZE"
118118 value = " 268435456"
119119 },
120+ {
121+ name = " DOCKER_REGISTRY_SERVER_URL"
122+ value = var.function_container_registry_url
123+ },
120124 {
121125 name = " PYTHON_THREADPOOL_THREAD_COUNT"
122126 value = " None"
@@ -133,6 +137,10 @@ resource "azapi_resource" "function" {
133137 name = " WEBSITE_RUN_FROM_PACKAGE"
134138 value = " 0"
135139 },
140+ {
141+ name = " WEBSITES_ENABLE_APP_SERVICE_STORAGE"
142+ value = " false"
143+ },
136144 {
137145 name = " PYTHON_ENABLE_WORKER_EXTENSIONS"
138146 value = " 1"
Original file line number Diff line number Diff line change @@ -34,6 +34,16 @@ variable "tags" {
3434}
3535
3636# Function variables
37+ variable "function_container_registry_url" {
38+ description = " Specifies the container image reference of the Azure Function."
39+ type = string
40+ sensitive = false
41+ validation {
42+ condition = startswith (var. function_container_registry_url , " https://" )
43+ error_message = " Please specify a valid container image reference."
44+ }
45+ }
46+
3747variable "function_container_image" {
3848 description = " Specifies the container image reference of the Azure Function."
3949 type = string
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ prefix = "myfunc"
55tags = {}
66
77# Function variables
8+ function_container_registry_url = " https://ghcr.io"
89function_container_image = " ghcr.io/perfectthymetech/azurefunctionpython:main"
910function_sku = " P0v3"
1011function_sku_cpus = 1
You can’t perform that action at this time.
0 commit comments