From a10a51609b4577b77fa4124c0cf705161f087bb5 Mon Sep 17 00:00:00 2001 From: Will Tsai <28876888+willtsai@users.noreply.github.com> Date: Thu, 2 Nov 2023 17:25:35 -0700 Subject: [PATCH] dapr tutorial port and routes fixes Signed-off-by: Will Tsai <28876888+willtsai@users.noreply.github.com> --- samples/dapr/dapr-azure.bicep | 24 ++---------------------- samples/dapr/dapr.bicep | 24 ++---------------------- 2 files changed, 4 insertions(+), 44 deletions(-) diff --git a/samples/dapr/dapr-azure.bicep b/samples/dapr/dapr-azure.bicep index 8bc92681..af2e96a8 100644 --- a/samples/dapr/dapr-azure.bicep +++ b/samples/dapr/dapr-azure.bicep @@ -45,11 +45,11 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = { image: 'ghcr.io/radius-project/samples/dapr-frontend:latest' env: { CONNECTION_BACKEND_APPID: backend.name + ASPNETCORE_URLS: 'http://*:8080' } ports: { ui: { - containerPort: 80 - provides: frontendRoute.id + containerPort: 8080 } } } @@ -62,26 +62,6 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = { } } -resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = { - name: 'frontend-route' - properties: { - application: app.id - } -} - -resource gateway 'Applications.Core/gateways@2023-10-01-preview' = { - name: 'gateway' - properties: { - application: app.id - routes: [ - { - path: '/' - destination: frontendRoute.id - } - ] - } -} - resource account 'Microsoft.Storage/storageAccounts@2019-06-01' = { name: 'dapr${uniqueString(resourceGroup().id)}' location: location diff --git a/samples/dapr/dapr.bicep b/samples/dapr/dapr.bicep index 85f9bcd3..978c26fe 100644 --- a/samples/dapr/dapr.bicep +++ b/samples/dapr/dapr.bicep @@ -48,11 +48,11 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = { image: 'ghcr.io/radius-project/samples/dapr-frontend:latest' env: { CONNECTION_BACKEND_APPID: backend.name + ASPNETCORE_URLS: 'http://*:8080' } ports: { ui: { - containerPort: 80 - provides: frontendRoute.id + containerPort: 8080 } } } @@ -65,26 +65,6 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = { } } -resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = { - name: 'frontend-route' - properties: { - application: app.id - } -} - -resource gateway 'Applications.Core/gateways@2023-10-01-preview' = { - name: 'gateway' - properties: { - application: app.id - routes: [ - { - path: '/' - destination: frontendRoute.id - } - ] - } -} - resource stateStore 'Applications.Dapr/stateStores@2023-10-01-preview' = { name: 'statestore' properties: {