container-apps-deployment
Container Apps Deployment Patterns
Supplements the official azure-prepare plugin skill with additional gotchas for Container Apps deployments — zone redundancy, azure.yaml, and SPA frontend patterns.
📖 ACR authentication: Use a deterministic two-phase pattern with separate deployment modules. The bootstrap module provisions each Container App with a public placeholder image and system-assigned identity but no
configuration.registriesentry. Grant that principalAcrPull, then make a later module depend on the role assignment and update the same app with the ACR login server andidentity: 'system'before deploying private images. A single module that declares both a new system identity and registry is not two-phase and can fail with an ACR token-exchange 401. Some azd versions callaz containerapp registry setautomatically and some do not. Never assume that implicit step occurred; verify the registry configuration before the first private-image deployment.
Region-Specific Gotchas
Container Apps Environment zoneRedundant
The AVM module br/public:avm/res/app/managed-environment may default zoneRedundant to true. Several regions (including westus) don't support it.