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" {
117
117
name = " DOCKER_SHM_SIZE"
118
118
value = " 268435456"
119
119
},
120
+ {
121
+ name = " DOCKER_REGISTRY_SERVER_URL"
122
+ value = var.function_container_registry_url
123
+ },
120
124
{
121
125
name = " PYTHON_THREADPOOL_THREAD_COUNT"
122
126
value = " None"
@@ -133,6 +137,10 @@ resource "azapi_resource" "function" {
133
137
name = " WEBSITE_RUN_FROM_PACKAGE"
134
138
value = " 0"
135
139
},
140
+ {
141
+ name = " WEBSITES_ENABLE_APP_SERVICE_STORAGE"
142
+ value = " false"
143
+ },
136
144
{
137
145
name = " PYTHON_ENABLE_WORKER_EXTENSIONS"
138
146
value = " 1"
Original file line number Diff line number Diff line change @@ -34,6 +34,16 @@ variable "tags" {
34
34
}
35
35
36
36
# 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
+
37
47
variable "function_container_image" {
38
48
description = " Specifies the container image reference of the Azure Function."
39
49
type = string
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ prefix = "myfunc"
5
5
tags = {}
6
6
7
7
# Function variables
8
+ function_container_registry_url = " https://ghcr.io"
8
9
function_container_image = " ghcr.io/perfectthymetech/azurefunctionpython:main"
9
10
function_sku = " P0v3"
10
11
function_sku_cpus = 1
You can’t perform that action at this time.
0 commit comments