Skip to content

Commit ad695ac

Browse files
msewaweruCopilot
andcommitted
Update Azure AI Foundry article with tested Custom OAuth flow
- Move app registration to prerequisites (align with Copilot Studio article) - Add client secret and Cloud Application Administrator role requirements - Add OAuth Provider Custom selection step - Update role from Contributor to Azure AI Developer - Apply security review and copy-edit fixes - Remove IMPORTANT alert box and sign-in troubleshooting step Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8dd1370 commit ad695ac

1 file changed

Lines changed: 27 additions & 33 deletions

File tree

Lines changed: 27 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,70 @@
11
---
22
title: Use Microsoft MCP Server for Enterprise in Azure AI Foundry
3-
description: "Learn how to add Microsoft MCP Server for Enterprise as a tool in your Azure AI Foundry AI Agent to query enterprise identity data using natural language."
3+
description: "Learn how to connect Microsoft MCP Server for Enterprise as a tool in your Azure AI Foundry agent to query enterprise identity data using natural language."
44
author: msewaweru
55
ms.author: eunicewaweru
66
ms.reviewer: FaithOmbongi
77
ms.subservice: ent-mcp-server
88
ms.topic: how-to
9-
ms.date: 04/08/2026
9+
ms.date: 04/15/2026
1010
ms.custom: msecd-doc-authoring-106
1111

1212
#customer intent: As a developer or IT administrator, I want to integrate Microsoft MCP Server for Enterprise into my Azure AI Foundry agent so that I can query Microsoft Entra data using natural language.
1313
---
1414

1515
# Use Microsoft MCP Server for Enterprise in Azure AI Foundry (preview)
1616

17-
Microsoft MCP Server for Enterprise integrates with Azure AI Foundry as a tool, enabling your AI agents to query Microsoft Entra data using natural language. This article walks you through creating an app registration, connecting the MCP Server as a tool, and querying your organization's data from your Azure AI Foundry project.
17+
Microsoft MCP Server for Enterprise integrates with Azure AI Foundry as a tool, enabling your AI agents to query Microsoft Entra data using natural language. Connect the MCP Server as a tool in your project and query your organization's data using natural language.
1818

1919
## Prerequisites
2020

21-
> [!IMPORTANT]
22-
> Microsoft MCP Server for Enterprise is currently in preview. This information relates to a prerelease product that might be substantially modified before it's released. Microsoft makes no warranties, expressed or implied, with respect to the information provided here.
23-
>
24-
> Microsoft MCP Server for Enterprise is offered under the [Microsoft APIs Terms of Use](/legal/microsoft-apis/terms-of-use).
25-
26-
- An Azure AI Foundry project and agent.
27-
- Completion of [Get started with the Microsoft MCP Server for Enterprise](get-started.md) to provision the MCP Server.
28-
- At least **Application Administrator** or **Cloud Application Administrator** role in your Microsoft Entra tenant to create and configure app registrations and grant admin consent for API permissions.
29-
- At least [**Contributor**](/azure/role-based-access-control/built-in-roles/general#contributor) permissions scoped to the Azure AI Foundry project resource to connect tools.
30-
31-
## Create and configure an app registration
32-
33-
To enable authentication between Azure AI Foundry and Microsoft MCP Server for Enterprise, create a Microsoft Entra app registration and grant the necessary API permissions.
34-
35-
1. Follow the [app registration guide](../app-registration.md) to create a Microsoft Entra app and get the client ID.
36-
37-
1. In your app registration, go to **Manage** > **API Permissions**.
38-
39-
1. Select **Add a permission**, and then search for **Microsoft MCP Server for Enterprise**.
40-
41-
1. Select the permissions required for your scenarios, and then select **Grant admin consent for [your tenant]** to authorize the permissions.
21+
- A Microsoft Entra tenant.
22+
- Complete the MCP Server provisioning steps in [Get started with the Microsoft MCP Server for Enterprise](get-started.md). For more information, see [MCP Server for Enterprise documentation](https://aka.ms/MCPServerForEnterprise).
23+
- A [client app registration](/entra/identity-platform/quickstart-register-app) in Microsoft Entra with the following configuration:
24+
- **Application (client) ID** — Note this value for use during setup.
25+
- **Client secret** — Go to **Certificates & secrets** > **Client secrets** and create a new secret. Copy the secret **value** for use during setup.
26+
- Assign the `MCP.*` API permissions to your app registration and grant admin consent. For more information, see [MCP Server for Enterprise documentation](https://aka.ms/MCPServerForEnterprise).
27+
- At least [**Cloud Application Administrator**](/entra/identity/role-based-access-control/permissions-reference#cloud-application-administrator) role to create the app registration and grant admin consent.
28+
- An Azure AI Foundry project with at least one agent configured.
29+
- At least [**Azure AI Developer**](/azure/role-based-access-control/built-in-roles/ai-machine-learning#azure-ai-developer) role scoped to the Azure AI Foundry project resource to connect tools and use agents.
4230

4331
## Connect the MCP Server as a tool in Azure AI Foundry
4432

45-
After you configure your app registration, connect the Microsoft MCP Server for Enterprise as a tool in your Azure AI Foundry project.
33+
Use the custom OAuth provider option to connect your app registration to the Microsoft MCP Server for Enterprise endpoint.
4634

4735
1. In the [Azure AI Foundry portal](https://ai.azure.com/), make sure you're using the **New Foundry** UI and navigate to your project.
4836

4937
1. In the sidebar menu, select **Tools**, and then select **Connect a tool**.
5038

5139
1. Under **Catalog**, search for **Microsoft MCP Server for Enterprise**, and then select **Create**.
5240

41+
1. For **OAuth Provider**, select **Custom** to use your own OAuth app registration for token exchange.
42+
5343
1. Provide the following configuration:
54-
- **Name**: Enter a unique identifier for the tool.
55-
- **Client ID**: Enter the app registration client ID from the previous section.
44+
- **Name**: Enter a unique identifier for the tool connection.
45+
- **Client ID**: Enter the application (client) ID from your app registration.
46+
- **Client Secret**: Enter the client secret value from your app registration.
5647
- **Token URL, Auth URL, and Refresh URL**: Replace `organizations` with your tenant ID if your Azure AI Foundry project and app registration are in different tenants. Otherwise, leave `organizations` as the default value.
5748

5849
1. Select **Connect**, and then copy the **Redirect URL** provided.
5950

60-
1. Return to your Microsoft Entra app registration, go to **Authentication**, add the Redirect URL, and save your changes.
51+
1. Return to your Microsoft Entra app registration, go to **Authentication**, add the redirect URL as a redirect URI, and save your changes.
6152

6253
## Query Microsoft Entra data
6354

64-
After you connect the Microsoft MCP Server for Enterprise tool, add it to your agent and start querying your organization's data using natural language.
55+
After you connect the Microsoft MCP Server for Enterprise tool, add it to an agent and start querying your organization's data using natural language.
56+
57+
1. In the Azure AI Foundry sidebar, go to **Agents** and select an existing agent or create a new one.
58+
59+
1. In the agent configuration, add the Microsoft MCP Server for Enterprise tool you connected in the previous section.
6560

6661
### Sign in and authorize access
6762

68-
When you first use the tool, sign in and authorize access.
63+
When you first use the tool, the agent prompts you to sign in and authorize access.
6964

7065
1. Select **Open consent** when prompted to sign in.
7166

72-
1. Follow the authentication prompts to grant access.
73-
74-
1. If sign-in fails, an error code appears in the `/closeme` window. Decode this base64-encoded value to view the detailed error information.
67+
1. Follow the authentication prompts to grant access. After you consent, you don't need to sign in again for future queries in the same project.
7568

7669
1. Approve each MCP tool call as prompted during query execution.
7770

@@ -87,3 +80,4 @@ After you sign in, you can ask questions such as:
8780

8881
- [Overview of Microsoft MCP Server for Enterprise](overview.md)
8982
- [Sample prompts for Microsoft MCP Server for Enterprise](mcp-server-sample-prompts.md)
83+
- [Set up authentication for MCP tools in Azure AI Foundry](/azure/foundry/agents/how-to/mcp-authentication)

0 commit comments

Comments
 (0)