From 41f7016a10fa1cc12db90be1a8f264ee24d87f1a Mon Sep 17 00:00:00 2001 From: Sidney Andrews Date: Tue, 8 Oct 2024 11:45:12 -0400 Subject: [PATCH] Add transport options to ACA --- infra/core/host/container-apps/app.bicep | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/infra/core/host/container-apps/app.bicep b/infra/core/host/container-apps/app.bicep index 8658d07..7a5e805 100644 --- a/infra/core/host/container-apps/app.bicep +++ b/infra/core/host/container-apps/app.bicep @@ -72,6 +72,15 @@ param enableSystemAssignedManagedIdentity bool = false @description('List of user-assigned managed identities. Defaults to an empty array.') param userAssignedManagedIdentityIds string[] = [] +@allowed([ + 'auto' + 'http' + 'http2' + 'tcp' +]) +@description('Transport protocol. Defaults to "auto".') +param transport string = 'auto' + resource environment 'Microsoft.App/managedEnvironments@2023-05-01' existing = { name: parentEnvironmentName } @@ -90,7 +99,7 @@ resource app 'Microsoft.App/containerApps@2023-05-01' = { ingress: ingressEnabled ? { external: externalAccess targetPort: targetPort - transport: 'auto' + transport: transport corsPolicy: { allowedOrigins: union([ 'https://portal.azure.com', 'https://ms.portal.azure.com' ], allowedOrigins) }