fix: update maxReplicas to 1 for WAF deployment scaling #261
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request updates the infrastructure templates to improve resource stability and compatibility with newer Azure APIs. The main changes are a restriction on container app scaling to prevent excessive agent creation during WAF deployment, and a comprehensive upgrade of
apiVersionreferences for Azure resource deployments from2022-09-01to2025-04-01. Additionally, the Bicep generator version and template hashes have been updated throughout the JSON templates to reflect the new build artifacts.Scaling and deployment stability
maxReplicassetting for the container app ininfra/main.bicepis now hardcoded to1(instead of conditionally allowing up to3), due to issues with multiple agents being created per type during WAF deployment. This change ensures more predictable scaling behavior.Azure resource API upgrades
infra/main.jsonnow useapiVersion: 2025-04-01instead of2022-09-01. This affects resources such as managed identities, log analytics workspaces, application insights, virtual networks, network security groups, private DNS zones, bastion hosts, jumpbox VMs, AI services, cognitive services, private endpoints, secrets exports, and AI projects. This upgrade improves future compatibility and access to newer Azure features. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19]Bicep generator and template hash updates
0.37.4.10188to0.38.33.27573and refreshed template hashes in multiple places withininfra/main.jsonto match the new build outputs. This ensures consistency between the Bicep source and generated ARM templates. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Deployment dependency fix
aiServicesprivate DNS zone is properly included in the dependency list.These changes collectively improve deployment reliability, future-proof the infrastructure, and ensure alignment with the latest Azure resource specifications.
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation