AZ-900 Microsoft Azure Fundamentals 2020

Sign Up Free or Log In to participate!

Unable to create service connection in Azure DevOps using Labs

 To interact with Azure resources, we need to create a service connection from Azure devops. But while creating service connection it fails with the policy issue. It throws the error : "Failed to create app in active directory" – insufficient previleges.

2 Answers

Hi Babum,

Thanks for posting and sorry you’re having a bit of trouble there!  It would help greatly if you could provide specifics of your problem – for instance, is this a specific hands-on lab you’re struggling with? Or are you trying to follow along with a demo which might not be compatible with our Cloud Playground?  A link is useful, as well as the steps you’re taking.

We are able to provide service principles for Azure within hands-on labs which you can add as a manual service connection in DevOps, but the automatic option will not work.

If you can share some specifics we’ll take a look! Thanks 🙂


A Cloud Guru

Babum Marimuthu

Hi Jonathon, thanks a lot for getting back to me quickly.

Babum Marimuthu

PS C:WINDOWSsystem32> az ad sp create-for-rbac -n "bmserviceprincipal" –role contributor –scopes /subscriptions/0f39574d-d756-48cf-b622-0e27a6943bd2/resourceGroups/1-9ec0885b-playground-sandbox Changing "bmserviceprincipal" to a valid URI of "http://bmserviceprincipal", which is the required format used for service principal names Directory permission is needed for the current user to register the application. For how to configure, please refer ‘‘. Original error: Insufficient privileges to complete the operation. PS C:WINDOWSsystem32>

Babum Marimuthu

Please refer to the error here

Babum Marimuthu

"Directory permission is needed for the current user to register the application."

Any update on this one?

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?