Azure Devops-无权执行操作'Microsoft.Web / sites / restart / action'

时间:2018-11-28 16:22:37

标签: azure azure-devops

作为部署脚本的一部分,我正在从Azure DevOps运行powershell以重新启动Azure中的应用程序服务。该命令:

Write-Host ("Restarting Website " + $websiteName)
Restart-AzureRmWebApp -ResourceGroupName $resourceGroupName -Name $websiteName

我收到以下错误消息:

The client 'XXXX' with object id 'YYYY' does not have authorization to perform action 'Microsoft.Web/sites/restart/action' over scope '/subscriptions/ZZZZ/resourceGroups/ExcelWraps-Staging/providers/Microsoft.Web/sites/excelwrapsstaging

在Azure中注册该应用程序需要什么权限?

0 个答案:

没有答案