Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

”az webapp deploy“ requires additional "Microsoft.Web/Serverfarms/read" permission since version 2.59.0, which is unexpected #28978

Open
kevin808 opened this issue May 16, 2024 · 2 comments
Assignees
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

Comments

@kevin808
Copy link

Describe the bug

It is not expected for the app service deployment to require additional permission for "Microsoft.Web/Serverfarms/read".
image

When run the same command prior to version 2.59.0, there is no issues.
image

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

@kevin808 kevin808 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label May 16, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Web Apps az webapp Service Attention This issue is responsible by Azure service team. labels May 16, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented May 16, 2024

Thank you for opening this issue, we will look into it.

Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.

@btardif btardif added this to the June 2024 (2024-07-02) milestone May 19, 2024
@btardif btardif assigned dannysongg and unassigned btardif May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants