Created
May 14, 2026 17:38
-
-
Save andrewmatveychuk/c8d43ade3b2b009149ecbdc49032d9c3 to your computer and use it in GitHub Desktop.
Sample Container App template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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