【发布时间】:2020-07-21 00:43:12
【问题描述】:
我尝试使用 PS 和 ARM 部署 SQL Server 逻辑服务器。我可以在具有贡献者权限的门户上成功创建逻辑服务器,但无法弄清楚这里出了什么问题。
我这里有 Windows 上的 PowerShell ISE。
ARM模板是从https://github.com/Azure/azure-quickstart-templates/tree/master/101-sql-logical-server/复制粘贴
//CODE
Connect-AzAccount -Credential $Credential -Tenant $tenant -Subscription $subscription
#ARM Deployment
$templateFile = "C:\Azure\SQLServer\azuredeploy.json"
New-AzResourceGroupDeployment `
-Name SQLDeployment `
-ResourceGroupName my-rg `
-TemplateFile $templateFile
错误: New-AzResourceGroupDeployment:17.35.18 - 错误:代码=InvalidTemplateDeployment;消息= 模板部署失败并出现错误:'模板资源'sql 的授权失败 vasvtmcp42o3wko/Microsoft.Authorization/11fd61df-2336-5b96-9b45-ffc7160df111' 类型 'Microsoft.Storage/storageAccounts/providers/roleAssignments'。客户'john.smith@mycompany。 com' 对象 ID 为 '1115f3de-834b-4d28-a48f-ecaad01e3111' 无权在范围 '/subscriptions/1111111 执行操作 'Microsoft.Authorization/roleAssignments/write' 11111111111111/resourceGroups/my-rg/providers/Microsoft.Storage/storageAccounts/sqlvasvtmcp42o3wko/providers/Microsoft.Authorization/roleAssignments/11111df -2336-5b96-9b45-ffc7160df168'.'.
【问题讨论】:
-
这个问题有更新吗?你能告诉我它是否有效吗?