Skip to content

Instantly share code, notes, and snippets.

@andrewmatveychuk
Created May 14, 2026 17:26
Show Gist options
  • Select an option

  • Save andrewmatveychuk/22edae5fa470341634426fdfa09afc31 to your computer and use it in GitHub Desktop.

Select an option

Save andrewmatveychuk/22edae5fa470341634426fdfa09afc31 to your computer and use it in GitHub Desktop.
Container App Environment template
resource containerEnvironment 'Microsoft.App/managedEnvironments@2026-01-01' = {
name: containerAppEnvironmentName
location: location
properties: {
appLogsConfiguration: {
destination: 'log-analytics'
logAnalyticsConfiguration: {
customerId: existingWorkspace.properties.customerId
sharedKey: existingWorkspace.listKeys().primarySharedKey
}
}
vnetConfiguration: {
internal: internal // This must be set to internal to access Private Link connections
infrastructureSubnetId: containerEnvironmentSubnet.id // You need to provide a subnet to be delegated and used by the environment
}
zoneRedundant: true
workloadProfiles: [ // Use Workload profile envionments only
{
name: 'Consumption'
workloadProfileType: 'Consumption'
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment