Summary: How to register an Azure Enterprise App for Graph.
Date: Around 2022
Refactor: 20 February 2025: Checked links and formatting.
I found in the last couple of years multiple uses for Graph, and slowly also Microsoft is moving to Graph for more and more authentication automation. I also found that the interface and procedure changes very fast, I register an Azure Enterprise App once every few months or so and I don't think I've ever done in exactly the same way as before. Because of that, it does take more time than I counted on, so I wanted to make a single page to collect all information, or directly link to other pages as examples.
To register an Azure Enterprise App, follow the following steps:
After the registration you'll see the overview of the registered app. Note the Application ID, you'll need it to identify the registered application.
Note that the Application ID is also sometimes referred to as the Client ID.
To configure a secret, from the registered application overview, follow the following steps:
Once done, you'll see the value. Note the value, as this is the only time you'll be presented with it.
Note that the Client secret is also sometimes referred to as the application password or the secret passphrase.
The registered App needs permissions todo what you are going to use it for. Depending on what you are going to use it for, you need to assign permissions on a delegated user level or application level, or both. To assign permissions, from the registered application overview, follow the following steps:
Note that if you forget to grant the admin consent (a typical mistake) you can run into various errors and warnings depending on your IDE/Interface you're working with.
Now all we need to know is the primary domain configured for the tenant. In the azure portal, go back to the Azure Active Directory overview, and follow these steps:
Here I try to list all the documentation, howto's and such where I've used an Azure Enterprise Application:
Link | API Used | Purpose and Remarks |
---|---|---|
Azure DevOps Extension - Send email through Graph | Microsoft Graph | An Azure DevOps extension that uses MS Graph to send out emails when a SMTP server is not available. |
Office365 Health Status and Licenses | Microsoft Graph and Office 365 Management | Use a powerhell script to retrieve the health status of office 365 (and visualize that with PowerBI) |
Azure Devops Server Maintenance Build | Microsoft Graph | Use a powershell script to monitor an isolated environment and mail out monitoring messages using graph |
Federated Login for AWS with Azure AD | None | Use Azure Active Directory accounts to log in to the AWS Console |
Manage MS Teams Membership | Microsoft Graph | Use a powershell script in Azure DevOps Server to add users to a Microsoft Team based on an AD security group |