【发布时间】:2021-10-31 16:33:58
【问题描述】:
在 Azure 管道中使用 AddOrUpdateUserAzure@1 任务通过 Microsoft 托管代理 ubuntu-latest 创建 Microsoft SQL Server 数据库用户失败,并显示如下错误:
- task: AddOrUpdateUserAzure@1
displayName: DB user creation
inputs:
ConnectedServiceNameSelector: 'ConnectedServiceNameARM'
ConnectedServiceNameARM: ${{ parameters.arm_service_connection }}
serverName: test-sql-server'
databaseName: 'test-sql-db'
userName: 'admin'
userPassword: 'admin_password'
targetUserName: 'readonly-user'
targetUserPassword: 'password'
queryTimeout: '30'
错误
[错误] 当前操作系统无法运行此任务。这通常意味着该任务仅针对 Windows 编写。例如,为 Windows 桌面 PowerShell 编写。
请分享您的建议,我们可以使用 linux 代理在 Microsoft SQL Server 中创建只读用户
【问题讨论】:
标签: azure-devops azure-sql-database azure-pipelines azure-pipelines-yaml azure-pipelines-tasks