作为部署脚本的一部分,我正在从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中注册该应用程序需要什么权限?