Forum Discussion
Installing AAD Graph API in new tenant
Hi I'm very new to Azure Active Directory (and Azure in general) so please bear with me. I'm in the process of provisioning a new tenant in Azure Dogfood so that I can do a tenant level deployment. However, I will need to first assign myself Owner role to the root scope using the Powershell cmdlet New-AzRoleAssignment according to this page (https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to-tenant). However when I run the cmdlet I'm getting the error "The resource principal named https://graph.windows.net/ was not found in the
tenant named {tenatid}. This can happen if the application has not been installed by the administrator of the tenant". Apparently New-AzRoleAssignment will use AAD Graph API for authentication but AAD Graph API is not installed in the new tenant I provision. I try installing it through the market place in the Azure Portal but AAD Graph API is not found. How can I install AAD Graph API in the portal? Thanks
- niklastinnerBrass ContributorHi
I am also pretty new to Azure Graph. But I would recommend you to go to the app registrations and not market place to register your application. Found in Azure Active Directory>App regestration. There you can link your new app.
Maybe this also helps you out: https://tech.nicolonsky.ch/exploring-the-new-microsoft-graph-powershell-modules/ - Thijs LecomteBronze ContributorIt seems that you are missing some general info about Microsoft Graph. Have you check out this blog series https://developer.microsoft.com/en-us/graph/blogs/announcing-30-days-of-microsoft-graph-blog-series/.
This walks you through the beginnings of creating your first app