diff --git a/infra/shared/container-app-service.bicep b/infra/shared/container-app-service.bicep index 92f0117..bd38834 100644 --- a/infra/shared/container-app-service.bicep +++ b/infra/shared/container-app-service.bicep @@ -22,7 +22,7 @@ param serviceType string @description('The target port for the container') param targetPort int -resource containerAppsEnvironment 'Microsoft.App/managedEnvironments@2023-05-01' existing = { +resource containerAppsEnvironment 'Microsoft.App/managedEnvironments@2024-03-01' existing = { name: containerAppsEnvironmentName } diff --git a/infra/shared/container-app.bicep b/infra/shared/container-app.bicep index 32876bf..dace5f7 100644 --- a/infra/shared/container-app.bicep +++ b/infra/shared/container-app.bicep @@ -67,7 +67,7 @@ param serviceType string = '' @description('The target port for the container') param targetPort int = 80 -resource containerAppsEnvironment 'Microsoft.App/managedEnvironments@2023-05-01' existing = { +resource containerAppsEnvironment 'Microsoft.App/managedEnvironments@2024-03-01' existing = { name: containerAppsEnvironmentName } diff --git a/infra/shared/container-apps-environment.bicep b/infra/shared/container-apps-environment.bicep index 1e112ff..6b13b90 100644 --- a/infra/shared/container-apps-environment.bicep +++ b/infra/shared/container-apps-environment.bicep @@ -8,7 +8,7 @@ param logAnalyticsWorkspaceName string @description('Name of the Application Insights resource') param applicationInsightsName string -resource containerAppsEnvironment 'Microsoft.App/managedEnvironments@2023-05-01' = { +resource containerAppsEnvironment 'Microsoft.App/managedEnvironments@2024-03-01' = { name: name location: location tags: tags