From 10255b7c72ad5c1549c17188335d0394d5ba740d Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Mon, 18 Nov 2024 10:13:51 +0100 Subject: [PATCH] fix deployment? --- infrastructure/app.bicep | 14 ++++++++++++-- infrastructure/monitoring.bicep | 2 +- infrastructure/registry.bicep | 11 ++++++++++- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/infrastructure/app.bicep b/infrastructure/app.bicep index fc92201..5e70018 100644 --- a/infrastructure/app.bicep +++ b/infrastructure/app.bicep @@ -15,6 +15,16 @@ resource environment 'Microsoft.App/managedEnvironments@2024-03-01' = { appLogsConfiguration: { destination: 'azure-monitor' } + peerAuthentication: { + mtls: { + enabled: false + } + } + peerTrafficConfiguration: { + encryption: { + enabled: false + } + } } } @@ -55,7 +65,7 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = { registries: [ { identity: 'system' - server: '${registry.properties.loginServer}@2023-07-01' + server: 'acreuwprdcalque.azurecr.io' } ] } @@ -63,7 +73,7 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = { template: { containers: [ { - image: '${registry.properties.loginServer}/${context.projectName}-${appName}:${version}' + image: 'acreuwprdcalque.azurecr.io/${context.projectName}-${appName}:${version}' name: '${context.projectName}-${appName}' resources: { cpu: json('0.25') diff --git a/infrastructure/monitoring.bicep b/infrastructure/monitoring.bicep index 01079da..f057cd0 100644 --- a/infrastructure/monitoring.bicep +++ b/infrastructure/monitoring.bicep @@ -5,7 +5,7 @@ targetScope = 'resourceGroup' param context Context // resource monitoring 'Microsoft.___/___@___' = { -// name: 'acr-${context.locationAbbreviation}-${context.environment}-${context.projectName}' +// name: '___-${context.locationAbbreviation}-${context.environment}-${context.projectName}' // location: context.location // properties: {} // } diff --git a/infrastructure/registry.bicep b/infrastructure/registry.bicep index 689da4f..2878a58 100644 --- a/infrastructure/registry.bicep +++ b/infrastructure/registry.bicep @@ -10,7 +10,16 @@ resource registry 'Microsoft.ContainerRegistry/registries@2023-07-01' = { sku: { name: 'Basic' } - properties: {} + identity: { + type: 'SystemAssigned' + } + properties: { + adminUserEnabled: true + dataEndpointEnabled: false + encryption: { + status: 'disabled' + } + } } output registry resource'Microsoft.ContainerRegistry/registries@2023-07-01' = registry