I am trying to apply the pattern for the newly released Azure AD extension as per the code provided in the sample https://github.com/WindowsAzureAD/WindowsAzureAD-GraphAPI-Sample-OrgChart on my own Azure MVC application. I am trying to use the createExtension method to start with. However when I call my application it returns - Resource "ObjectId" does not exist or one of its queried reference-property objects are not present.
The generated url which is failing is - https://graph.windows.net/.onmicrosoft.com/applications/"ObjectId"/extensionProperties?api-version=1.21-preview where the error reports that the "ObjectId" does not exist or one of its queried reference-property objects are not present.
To get the ObjectId for my app I have used the powershell command get-msolserviceprincipal and used the ObjectId field value for the application. Has anyone been able to apply the pattern on their own Azure MVC app? What could I be doing wrong? Any suggestion would be highly valuable.
Shas