File tree Expand file tree Collapse file tree 3 files changed +15
-13
lines changed Expand file tree Collapse file tree 3 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ resource "azapi_resource" "function" {
8
8
type = " SystemAssigned"
9
9
}
10
10
11
- body = jsonencode ( {
11
+ body = {
12
12
kind = " functionapp,linux,container"
13
13
properties = {
14
14
clientAffinityEnabled = false
@@ -171,12 +171,14 @@ resource "azapi_resource" "function" {
171
171
webSocketsEnabled = false
172
172
}
173
173
}
174
- })
174
+ }
175
175
176
176
schema_validation_enabled = false
177
- # ignore_body_changes = [ # Required when app settings are managed in a separate process
178
- # "properties.siteConfig.appSettings"
179
- # ]
177
+ # lifecycle {
178
+ # ignore_changes = [
179
+ # body.properties.siteConfig.appSettings, # Required when app settings are managed in a separate process
180
+ # ]
181
+ # }
180
182
depends_on = [
181
183
module . key_vault . key_vault_setup_completed ,
182
184
module . storage_account . storage_setup_completed ,
Original file line number Diff line number Diff line change 1
1
resource "azapi_resource" "subnet_function" {
2
- type = " Microsoft.Network/virtualNetworks/subnets@2022-07 -01"
2
+ type = " Microsoft.Network/virtualNetworks/subnets@2024-03 -01"
3
3
name = " FunctionSubnet"
4
4
parent_id = data. azurerm_virtual_network . virtual_network . id
5
5
6
- body = jsonencode ( {
6
+ body = {
7
7
properties = {
8
8
addressPrefix = var.subnet_cidr_function
9
9
delegations = [
@@ -26,15 +26,15 @@ resource "azapi_resource" "subnet_function" {
26
26
serviceEndpointPolicies = []
27
27
serviceEndpoints = []
28
28
}
29
- })
29
+ }
30
30
}
31
31
32
32
resource "azapi_resource" "subnet_private_endpoints" {
33
- type = " Microsoft.Network/virtualNetworks/subnets@2022-07 -01"
33
+ type = " Microsoft.Network/virtualNetworks/subnets@2024-03 -01"
34
34
name = " PeSubnet"
35
35
parent_id = data. azurerm_virtual_network . virtual_network . id
36
36
37
- body = jsonencode ( {
37
+ body = {
38
38
properties = {
39
39
addressPrefix = var.subnet_cidr_private_endpoints
40
40
delegations = []
@@ -50,7 +50,7 @@ resource "azapi_resource" "subnet_private_endpoints" {
50
50
serviceEndpointPolicies = []
51
51
serviceEndpoints = []
52
52
}
53
- })
53
+ }
54
54
55
55
depends_on = [
56
56
azapi_resource . subnet_function
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ terraform {
4
4
required_providers {
5
5
azurerm = {
6
6
source = " hashicorp/azurerm"
7
- version = " 4.6 .0"
7
+ version = " 4.8 .0"
8
8
}
9
9
azapi = {
10
10
source = " azure/azapi"
11
- version = " 1.15.0 "
11
+ version = " 2.0.1 "
12
12
}
13
13
time = {
14
14
source = " hashicorp/time"
You can’t perform that action at this time.
0 commit comments