Skip to content

Commit d5c6249

Browse files
committed
Fix Container App deployment: Use dynamic image parameters
- Add portalImage and dabImage parameters to bicep template - Replace hard-coded image references with dynamic parameters - Aligns with azure.yaml service configuration for AZD deployment - Fixes 'Failed: Container App: ca-stamps-dab' deployment error
1 parent c5403eb commit d5c6249

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

management-portal/infra/management-portal.bicep

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ param useKeyVault bool = false
3131
@description('Key Vault name to read secrets from when useKeyVault = true')
3232
param keyVaultName string = ''
3333

34+
@description('Portal container image')
35+
param portalImage string
3436

35-
// Note: portalImage and dabImage parameters are kept for future use but currently use base images
37+
@description('DAB container image')
38+
param dabImage string
3639

3740
resource cosmos 'Microsoft.DocumentDB/databaseAccounts@2024-05-15' = {
3841
name: cosmosAccountName
@@ -322,7 +325,7 @@ resource dabContainerApp 'Microsoft.App/containerApps@2024-03-01' = {
322325
containers: [
323326
{
324327
// Use the built image for DAB which expects to be exposed on port 80
325-
image: 'crxgjwtecm3g5pi.azurecr.io/stamps-dab:working-fix-3'
328+
image: dabImage
326329
name: 'dab'
327330
// Let the container use its default entrypoint instead of overriding
328331
// command: [ 'dab', 'start', '--host', '0.0.0.0', '--config', '/App/dab-config.json' ]
@@ -442,7 +445,7 @@ resource portalContainerApp 'Microsoft.App/containerApps@2024-03-01' = {
442445
template: {
443446
containers: [
444447
{
445-
image: '${containerRegistry.properties.loginServer}/stamps-portal:ui-fixes-1'
448+
image: portalImage
446449
name: 'portal'
447450
env: [
448451
{

0 commit comments

Comments
 (0)