Closed luabud closed 1 year ago
Hello @luabud , thank you for contacting and creating the issue.
azd pipeline config
requires Owner
or User access administrator
role for the Azure Subscription.
It also requires permissions in the linked Azure Active Directory to register applications. (This is usually not a problem).
Contributor role is not enough for creating/updating service principals.
@rajeshkamal5050 , this is not a blocker, but we can make azd
to check user roles and return an error from the start if the required roles are missing.
Removing blocker based on above and keeping it for GA to improve the error handling/messaging.
That makes sense, thanks for the info!
@wbreza Is this now fixed?
Change was reverted - https://github.com/Azure/azure-dev/pull/2288
@wbreza Is this now fixed?
@savannahostrowski / @rajeshkamal5050 With the change of #2218 azd pipeline config
will automatically attempt to include both Contributor
and User Access Administrator
that resolves issues of the provisioning to fail due to insufficient privileges on the service principal.
However, if the user creating the service principal does not have permissions to create role assignments then the azd pipeline config
command will still fail and they may need to reuse or have an admin create a service principal with the correct permissions.
I've confirmed I have User access administrator
and am a Contributor
for the subscription but am still running into the same error. How can I check if I have permissions in the linked Azure Active Directory to register applications.
Output from
azd version
Runazd version
and copy and paste the output here: azd version 0.8.0-beta.1 (commit 08209da7c22d28c6a123ef4e88d433132066b800)Describe the bug
I create an empty folder and used the
azd init --template AzureSamples/todo-python-mongo-aca
command to initialized my sample application.azd up
worked as expected and I got the app deployed. However, when runningazd pipeline config
, it errored out with the following message:I double checked and I am a contributor to the subscription I used.
To Reproduce I ran the following in an empty folder:
Environment Information on your environment: