fix deployment?
This commit is contained in:
parent
216f813b8b
commit
10255b7c72
3 changed files with 23 additions and 4 deletions
|
@ -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')
|
||||
|
|
|
@ -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: {}
|
||||
// }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue