Active Directory
A set of directory-based technologies included in Windows Server.
6,764 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Team,
I am having problem using azure java sdk to create service principal,
val resourceManager: AzureResourceManager = { AzureResourceManager.authenticate(credential, profile).withDefaultSubscription()
}
val password = "xxxxx"
val sp = resourceManager
.accessManagement()
.servicePrincipals()
.define(spName)
.withExistingApplication(appId)
.definePasswordCredential(password)
.attach()
.create()
Got exception
{"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation.","innerError":{"date":"2024-12-19T19:50:01","request-id":"xxxx","client-request-id":"xxxx"}}}
I have already grant the service principal with role: "Role Based Access Control Administrator"
What permission should a service principal be configured before it can be used to generate another service principal? Thanks a million for the help!