File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ resource "azapi_resource" "function" {
88 type = " SystemAssigned"
99 }
1010
11- body = jsonencode ( {
11+ body = {
1212 kind = " functionapp,linux,container"
1313 properties = {
1414 clientAffinityEnabled = false
@@ -171,12 +171,14 @@ resource "azapi_resource" "function" {
171171 webSocketsEnabled = false
172172 }
173173 }
174- })
174+ }
175175
176176 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+ # }
180182 depends_on = [
181183 module . key_vault . key_vault_setup_completed ,
182184 module . storage_account . storage_setup_completed ,
Original file line number Diff line number Diff line change 11resource "azapi_resource" "subnet_function" {
2- type = " Microsoft.Network/virtualNetworks/subnets@2022-07 -01"
2+ type = " Microsoft.Network/virtualNetworks/subnets@2024-03 -01"
33 name = " FunctionSubnet"
44 parent_id = data. azurerm_virtual_network . virtual_network . id
55
6- body = jsonencode ( {
6+ body = {
77 properties = {
88 addressPrefix = var.subnet_cidr_function
99 delegations = [
@@ -26,15 +26,15 @@ resource "azapi_resource" "subnet_function" {
2626 serviceEndpointPolicies = []
2727 serviceEndpoints = []
2828 }
29- })
29+ }
3030}
3131
3232resource "azapi_resource" "subnet_private_endpoints" {
33- type = " Microsoft.Network/virtualNetworks/subnets@2022-07 -01"
33+ type = " Microsoft.Network/virtualNetworks/subnets@2024-03 -01"
3434 name = " PeSubnet"
3535 parent_id = data. azurerm_virtual_network . virtual_network . id
3636
37- body = jsonencode ( {
37+ body = {
3838 properties = {
3939 addressPrefix = var.subnet_cidr_private_endpoints
4040 delegations = []
@@ -50,7 +50,7 @@ resource "azapi_resource" "subnet_private_endpoints" {
5050 serviceEndpointPolicies = []
5151 serviceEndpoints = []
5252 }
53- })
53+ }
5454
5555 depends_on = [
5656 azapi_resource . subnet_function
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ terraform {
88 }
99 azapi = {
1010 source = " azure/azapi"
11- version = " 1.15.0 "
11+ version = " 2.0.1 "
1212 }
1313 time = {
1414 source = " hashicorp/time"
You can’t perform that action at this time.
0 commit comments