Azure DevOps发布管道中Set-AzSqlServerActiveDirectoryAdministrator失效求助
解决Set-AzSqlServerActiveDirectoryAdministrator命令报错:
The 'parameters.properties' segment in the url is invalid 问题说明
- 执行
Set-AzSqlServerActiveDirectoryAdministrator命令时触发错误:The 'parameters.properties' segment in the url is invalid - 触发原因:Azure DevOps发布管道的代理已部署最新版Azure PowerShell模块(11.3.1),该版本绑定的az.sql模块为4.14.0,此版本存在API路径构造的bug
临时解决方案
- 回退Azure PowerShell模块至11.3.0版本(该版本依赖az.sql 4.13.0,无此问题)
- 在DevOps管道中指定安装特定版本模块,示例命令:
Install-Module -Name Az -RequiredVersion 11.3.0 -Force -AllowClobber - 也可等待官方修复该问题,此bug已被纳入Azure PowerShell官方问题追踪清单
内容的提问来源于stack exchange,提问作者Shahid Sayyed
相关产品推荐
相关产品推荐

