fix deployment?

This commit is contained in:
Chris Kruining 2024-11-18 10:13:51 +01:00
parent 216f813b8b
commit 10255b7c72
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
3 changed files with 23 additions and 4 deletions

View file

@ -15,6 +15,16 @@ resource environment 'Microsoft.App/managedEnvironments@2024-03-01' = {
appLogsConfiguration: { appLogsConfiguration: {
destination: 'azure-monitor' destination: 'azure-monitor'
} }
peerAuthentication: {
mtls: {
enabled: false
}
}
peerTrafficConfiguration: {
encryption: {
enabled: false
}
}
} }
} }
@ -55,7 +65,7 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = {
registries: [ registries: [
{ {
identity: 'system' 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: { template: {
containers: [ containers: [
{ {
image: '${registry.properties.loginServer}/${context.projectName}-${appName}:${version}' image: 'acreuwprdcalque.azurecr.io/${context.projectName}-${appName}:${version}'
name: '${context.projectName}-${appName}' name: '${context.projectName}-${appName}'
resources: { resources: {
cpu: json('0.25') cpu: json('0.25')

View file

@ -5,7 +5,7 @@ targetScope = 'resourceGroup'
param context Context param context Context
// resource monitoring 'Microsoft.___/___@___' = { // resource monitoring 'Microsoft.___/___@___' = {
// name: 'acr-${context.locationAbbreviation}-${context.environment}-${context.projectName}' // name: '___-${context.locationAbbreviation}-${context.environment}-${context.projectName}'
// location: context.location // location: context.location
// properties: {} // properties: {}
// } // }

View file

@ -10,7 +10,16 @@ resource registry 'Microsoft.ContainerRegistry/registries@2023-07-01' = {
sku: { sku: {
name: 'Basic' name: 'Basic'
} }
properties: {} identity: {
type: 'SystemAssigned'
}
properties: {
adminUserEnabled: true
dataEndpointEnabled: false
encryption: {
status: 'disabled'
}
}
} }
output registry resource'Microsoft.ContainerRegistry/registries@2023-07-01' = registry output registry resource'Microsoft.ContainerRegistry/registries@2023-07-01' = registry