Skip to content

Commit

Permalink
fix deployment?
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Kruining committed Nov 18, 2024
1 parent 216f813 commit 10255b7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
14 changes: 12 additions & 2 deletions infrastructure/app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ resource environment 'Microsoft.App/managedEnvironments@2024-03-01' = {
appLogsConfiguration: {
destination: 'azure-monitor'
}
peerAuthentication: {
mtls: {
enabled: false
}
}
peerTrafficConfiguration: {
encryption: {
enabled: false
}
}
}
}

Expand Down Expand Up @@ -55,15 +65,15 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = {
registries: [
{
identity: 'system'
server: '${registry.properties.loginServer}@2023-07-01'
server: 'acreuwprdcalque.azurecr.io'
}
]
}

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')
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/monitoring.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
// }
11 changes: 10 additions & 1 deletion infrastructure/registry.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 10255b7

Please sign in to comment.