I am able to register application by following information provided in Creating Azure AD application and a service principal using .NET Core (the API and HTTP), but when I tried the following endpoint using Postman, I got an Insufficient Privileges error.
As I am able to create an app with the API, I don't believe it is a permission issue.
POST https://graph.windows.net/{{tenant_id}}/servicePrincipals?api-version=1.6
body like this:
{
"appId":"eb167a6d-aaaa-aaaa-aaaa-46e981be37fa"
}
and getting this error
{
"odata.error": {
"code": "Authorization_RequestDenied",
"message": {
"lang": "en",
"value": "Insufficient privileges to complete the operation."
}
}
}