Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save andrewmatveychuk/c8d43ade3b2b009149ecbdc49032d9c3 to your computer and use it in GitHub Desktop.
Sample Container App template
resource containerApp 'Microsoft.App/containerApps@2026-01-01' = {
name: containerAppName
location: location
identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'${managedIdentityId}': {}
}
}
properties: {
managedEnvironmentId: containerEnvironment.id
configuration: {
ingress: {
external: true // This must be set to 'true' to accept traffic outside of the container network
targetPort: containerPort
transport: 'http'
allowInsecure: false
}
secrets: containerSecrets
}
template: {
containers: [
{
image: containerImageUrl
name: containerAppName
// Environment variables, mounts and probes are array properties
env: containerEnvVars
volumeMounts: containerVolumeMounts
probes: containerProbes
}
]
volumes: containerVolumes // An array property
scale: {
minReplicas: minReplicas
maxReplicas: maxReplicas
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment