Open floari opened 1 year ago
@vhvb1989 Does a developer also need Microsoft.Resources/deployments/operationStatuses/read for a standard azd deployment? If so, our README needs updating. And/or perhaps there's a script we can provide that'd make exactly the roles required for azd deployment.
Yes, azd needs to list all deployments from the subscription, as it will try to find a previous deployment with the tag with the name of the environment.
@floari , are you running azd up
or azd provision
(or it doesn't matter) ?
Can you provide the logs adding --debug
flag when running the command? Thank you
@pamelafox , azd usually relies on the user as a Subcription-contributor/owner/admin.
We don't have a list of individual roles required for each azd-command. I'll create an issue for this and check with the team if we want to create and maintain such list.
azd issue to follow up: https://github.com/Azure/azure-dev/issues/2899
@vhvb1989
, total time: 34.346387ms
ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:
Deployment Error Details: AuthorizationFailed: The client 'XXXXX' with object id 'XXX' does not have authorization to perform action 'Microsoft.Resources/deployments/operationStatuses/read' over scope '/subscriptions/XXXXX/providers/Microsoft.Resources/deployments/XXXX-1698131884/operationStatuses/08585034749990621743' or the scope is invalid. If access was recently granted, please refresh your credentials.
TraceID: 336d7520a46447a0fef34d6816adc905
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Deployment Error Details: AuthorizationFailed: The client 'xxxxx' with object id 'xxxx' does not have authorization to perform action 'Microsoft.Resources/deployments/operationStatuses/read' over scope '/subscriptions/xxxxx/providers/Microsoft.Resources/deployments/xxxxx/operationStatuses/08585035367462556292' or the scope is invalid. If access was recently granted, please refresh your credentials.
Expected/desired behavior
OS and Version?
Windows 10
azd version?
1.4.2
Versions
Mention any other details that might be useful