”az webapp deploy“ requires additional "Microsoft.Web/Serverfarms/read" permission since version 2.59.0, which is unexpected #28978
Labels
app-service-deployment
Auto-Assign
Auto assign by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Web Apps
az webapp
Milestone
Describe the bug
It is not expected for the app service deployment to require additional permission for "Microsoft.Web/Serverfarms/read".
When run the same command prior to version 2.59.0, there is no issues.
Related command
az webapp deploy --resource-group APP --name xxx --src-path .\package.zip --type zip --async true
Errors
The client 'xxx' with object id 'xxx' does not have authorization to perform action 'Microsoft.Web/serverfarms/read' over scope '/subscriptions/xxx/resourceGroups/APP/providers/Microsoft.Web/serverfarms/LinuxPlan' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Issue script & Debug output
N/A
Expected behavior
The deployment should go without issues
Environment Summary
PS D:\demo\sql-nodejs> az --version
azure-cli 2.60.0
core 2.60.0
telemetry 1.1.0
Extensions:
serviceconnector-passwordless 1.0.2
spring 1.20.1
Dependencies:
msal 1.28.0
azure-mgmt-resource 23.1.0b2
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\lkevi.azure\cliextensions'
Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 21:52:07) [MSC v.1937 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response
The text was updated successfully, but these errors were encountered: