[release/9.3] Fix SqlServer PowerShell module version to avoid breaking changes in 22.4.5.1#9958
Merged
joperezr merged 1 commit intorelease/9.3from Jun 19, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR backports a fix to ensure that the SqlServer PowerShell module is installed at a specific version (22.3.0) to avoid breaking changes introduced in version 22.4.5.1, which prevented Azure SQL Server deployments.
- Updated the installation command in AzureSqlServerResource.cs to include the -RequiredVersion parameter.
- Propagated the same change across multiple bicep files (api2-roles-mysqlserver.module.bicep, api1-roles-mysqlserver.module.bicep, sql2-roles.module.bicep, sql1-roles.module.bicep) to ensure consistency.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Aspire.Hosting.Azure.Sql/AzureSqlServerResource.cs | Updated PowerShell module install command with explicit version. |
| playground/SqlServerScript/AppHost1/api2-roles-mysqlserver.module.bicep | Updated script content to install the specific module version. |
| playground/SqlServerScript/AppHost1/api1-roles-mysqlserver.module.bicep | Updated script content to install the specific module version. |
| playground/SqlServerEndToEnd/SqlServerEndToEnd.AppHost/sql2-roles.module.bicep | Updated script content to install the specific module version. |
| playground/SqlServerEndToEnd/SqlServerEndToEnd.AppHost/sql1-roles.module.bicep | Updated script content to install the specific module version. |
davidfowl
approved these changes
Jun 19, 2025
joperezr
approved these changes
Jun 19, 2025
This was referenced Jul 22, 2025
This was referenced Jul 29, 2025
This was referenced Aug 7, 2025
Closed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Backport of #9939 to release/9.3
Customer Impact
Users can't deploy Sql Server database on Azure because the deployment script fails with the updated package.
Testing
Tested manually before and after fix.
Risk
Low
Regression?
Yes