File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -62,17 +62,27 @@ variable "route_table_id" {
62
62
}
63
63
}
64
64
65
- variable "python_version " {
65
+ variable "function_python_version " {
66
66
description = " Specifies the python version of the Azure Function."
67
67
type = string
68
68
sensitive = false
69
69
default = " 3.10"
70
70
validation {
71
- condition = contains ([" 3.9" , " 3.10" ], var. python_version )
71
+ condition = contains ([" 3.9" , " 3.10" ], var. function_python_version )
72
72
error_message = " Please specify a valid Python version."
73
73
}
74
74
}
75
75
76
+ variable "function_health_path" {
77
+ description = " Specifies the health endpoint of the Azure Function."
78
+ type = string
79
+ sensitive = false
80
+ validation {
81
+ condition = startswith (var. function_health_path , " /" )
82
+ error_message = " Please specify a valid path."
83
+ }
84
+ }
85
+
76
86
variable "private_dns_zone_id_blob" {
77
87
description = " Specifies the resource ID of the private DNS zone for Azure Storage blob endpoints. Not required if DNS A-records get created via Azue Policy."
78
88
type = string
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ location = "northeurope"
2
2
environment = " dev"
3
3
prefix = " myfunc"
4
4
tags = {}
5
- python_version = " 3.10"
5
+ function_python_version = " 3.10"
6
+ function_health_path = " /v1/health/heartbeat"
6
7
vnet_id = " /subscriptions/8f171ff9-2b5b-4f0f-aed5-7fa360a1d094/resourceGroups/mycrp-prd-function-network-rg/providers/Microsoft.Network/virtualNetworks/mycrp-prd-function-vnet001"
7
8
nsg_id = " /subscriptions/8f171ff9-2b5b-4f0f-aed5-7fa360a1d094/resourceGroups/mycrp-prd-function-network-rg/providers/Microsoft.Network/networkSecurityGroups/mycrp-prd-function-nsg001"
8
9
route_table_id = " /subscriptions/8f171ff9-2b5b-4f0f-aed5-7fa360a1d094/resourceGroups/mycrp-prd-function-network-rg/providers/Microsoft.Network/routeTables/mycrp-prd-function-rt001"
You can’t perform that action at this time.
0 commit comments