The Microsoft Azure integration allows users to authenticate with your AI agents using their Microsoft Azure AD identity. This integration provides access to Microsoft’s ecosystem of applications and services and is essential for B2B scenarios where users need to access their work data and collaborate through Microsoft services.

Connect Microsoft Azure with Auth0

To set up a Microsoft Azure connection with Auth0, follow the Connect Your App to Microsoft Azure Active Directory detailed guide.
This guide walks you through setting up the Microsoft Azure connection in Auth0. For an end-to-end example that shows how to set up your app to call third-party APIs on the user's behalf using a connection like this, read the Call Other's APIs on User's Behalf Quickstart.

Token Vault configuration example

To configure the Token Vault for your Microsoft Azure connection, you can use the following code snippet in your application:
const auth0AI = new Auth0AI();

export const withMicrosoftAzureConnection = auth0AI.withTokenForConnection({
  connection: "microsoft-azure-connection-name",
  scopes: ["https://graph.microsoft.com/Files.Read", "https://graph.microsoft.com/Directory.Read.All", ...],
  refreshToken: getAuth0RefreshToken(),
});

Next steps