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: {