2
votes

Im trying to deploy Azure Function App in Azure Devops but I received the following error:

failed to create an app in azure active directory - insufficient privileges

Look the following image:

"failed to create an app in azure active directory" insufficient privileges

1
well, pretty much what the error says, you need application administrator permissions to create applications in Azure AD.4c74356b41
Application Developer role works too :)juunas

1 Answers

6
votes

Very agree with what @4c74356b41 commented above, but not the only solution you can try with.

As what the error message said:

Insufficient privileges to complete the operation.Ensure that the user has permission to create an Azure Active Directory application.

This is an Insufficient privileges issue, and has two solutions to solve it. These two solution can apply depend on different actual situations.

(1) If you only have guest permission in AAD, then meet this error in Azure Devops.

Just go contact the admin to grant the minimum additional permissions to you. For how to grant this, please due to this doc. Let the admin to set Guest user permissions are limited to No. At this time, you will get the minimum additional permissions.

(2) If you are the member of AAD, and just not be authorized to add applications in the directory.

Go User settings, then change Users can register applications to Yes under App registrations section.

enter image description here

Please refer to this section: The user is not authorized to add applications in the directory.


At last, the other way is grant you the global admin role. But this depend on your company policy. If the policy allowed, please let the admin follow the doc.

Note: I do not recommend this way since this is a very important role in AAD.