Reputation: 1405
I'm creating an app registration for Azure AD using my admin account. I intend to create an organization app registration (not multitenant).
When I create this manually via the Azure Portal, the app shows as it should. But when I create it through the Microsoft Graph (POST /beta/applications), it does not show up in the portal. BUT it shows up when listing applications (GET /beta/applications). So it is clearly registered, but not showing in the portal.
What am I missing?
I am using the same user in code that I'm using logged in to the portal. When I look at the JSON result in te GET app list, the only differences is that the app created manually has the following properties:
"orgRestrictions": ["my-tenant-id-guid"],
"publisherDomain": null,
"api": {
"acceptedAccessTokenVersion": null,
...
}
...and the app I created from code has these properties instead:
"orgRestrictions": [],
"publisherDomain": "mydomain.com",
"api": {
"acceptedAccessTokenVersion": 2,
...
}
Any ideas?
Upvotes: 2
Views: 407
Reputation: 14336
This API currently creates apps for the Azure AD "v2" endpoint. You should be able to see it if you sign in to https://apps.dev.microsoft.com (with the same account used to register the app via the API, of course).
Upvotes: 2