Explicitly set image tag to production and other azure resources to prod#2439
Merged
Aibono1225 merged 5 commits intomainfrom Feb 6, 2026
Merged
Explicitly set image tag to production and other azure resources to prod#2439Aibono1225 merged 5 commits intomainfrom
Aibono1225 merged 5 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a deployment configuration mismatch where Docker images were tagged as 'production' but Azure App Service was configured to look for images tagged as 'prod'. The fix introduces a separate imageTag parameter that preserves the original environment name ('production' or 'staging') for Docker image references, while keeping Azure resource names using the normalized form ('prod' or 'staging').
Changes:
- Introduced a new
imageTagparameter to Bicep templates that defaults to theenvironmentvalue but can be explicitly set - Modified deploy.ps1 to preserve the original environment name for Docker image tagging before normalizing to 'prod' for resource naming
- Updated documentation and parameter descriptions to clarify the distinction between resource naming and image tagging
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| infra/modules/appService.bicep | Added imageTag parameter and updated Docker image references to use it instead of environment |
| infra/main.bicep | Added imageTag parameter with default value and passed it to the appService module |
| infra/deploy.ps1 | Preserved original environment name as $ImageTag before normalization and passed it to Bicep templates; updated documentation to reflect 'staging' and 'production' as valid values |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Aibono1225
approved these changes
Feb 6, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
During deployment there was a mismatch between image tags and environment passed through the bicep. This was causing the container image to be 'production' but the app service was looking for 'prod'.
This PR fixes up this mismatch by explicitly setting image tag to production and using this in the app service, while keeping azure resources as 'prod'
Other updates: