Skip to content

Commit bbb8c73

Browse files
authored
Merge pull request #281 from PerfectThymeTech/marvinbuss/provider_upgrades
Upgrade Provider Versions
2 parents 3a29284 + 259fdef commit bbb8c73

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

code/infra/function.tf

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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,

code/infra/network.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
resource "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

3232
resource "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

code/infra/terraform.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ terraform {
44
required_providers {
55
azurerm = {
66
source = "hashicorp/azurerm"
7-
version = "4.6.0"
7+
version = "4.8.0"
88
}
99
azapi = {
1010
source = "azure/azapi"
11-
version = "1.15.0"
11+
version = "2.0.1"
1212
}
1313
time = {
1414
source = "hashicorp/time"

0 commit comments

Comments
 (0)