File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ resource "azapi_resource" "container_apps_environment" {
55 location = var. location
66 tags = var. tags
77
8- body = jsonencode ( {
8+ body = {
99 properties = {
1010 # appInsightsConfiguration = { # Can only be set when DaprAIConnectionString is set to null
1111 # connectionString = module.application_insights.application_insights_connection_string
@@ -34,7 +34,7 @@ resource "azapi_resource" "container_apps_environment" {
3434 ]
3535 zoneRedundant = false
3636 }
37- })
37+ }
3838}
3939
4040resource "azapi_resource" "container_apps_job" {
@@ -50,7 +50,7 @@ resource "azapi_resource" "container_apps_job" {
5050 ]
5151 }
5252
53- body = jsonencode ( {
53+ body = {
5454 properties = {
5555 configuration = {
5656 replicaRetryLimit = 1
@@ -168,5 +168,5 @@ resource "azapi_resource" "container_apps_job" {
168168 }
169169 workloadProfileName = " Consumption"
170170 }
171- })
171+ }
172172}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ resource "azapi_resource" "subnet_container_app" {
33 name = " ConAppEnvironmentSubnet"
44 parent_id = data. azurerm_virtual_network . virtual_network . id
55
6- body = jsonencode ( {
6+ body = {
77 properties = {
88 addressPrefix = var.subnet_cidr_container_app
99 delegations = [
@@ -26,15 +26,15 @@ resource "azapi_resource" "subnet_container_app" {
2626 serviceEndpointPolicies = []
2727 serviceEndpoints = []
2828 }
29- })
29+ }
3030}
3131
3232resource "azapi_resource" "subnet_private_endpoints" {
3333 type = " Microsoft.Network/virtualNetworks/subnets@2024-01-01"
3434 name = " ConAppPrivateEndpointSubnet"
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_container_app
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