You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-ai-agent-web-app-semantic-kernel-java.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Agentic app with Semantic Kernel or Azure AI Foundry (.NET)
2
+
title: Agentic app with Semantic Kernel (Java)
3
3
description: Learn how to quickly deploy a production-ready, agentic web application using Java with Azure App Service and Microsoft Semantic Kernel.
4
4
ms.service: azure-app-service
5
5
author: cephalin
@@ -8,7 +8,7 @@ ms.devlang: csharp
8
8
ms.topic: tutorial
9
9
ms.date: 07/16/2025
10
10
ms.custom:
11
-
- devx-track-dotnet
11
+
- devx-track-java
12
12
ms.collection: ce-skilling-ai-copilot
13
13
---
14
14
@@ -18,7 +18,7 @@ This tutorial demonstrates how to add agentic capability to an existing data-dri
18
18
19
19
If your web application already has useful features, like shopping, hotel booking, or data management, it's relatively straightforward to add agent functionality to your web application by wrapping those functionalities in a plugin (for Semantic Kernel). In this tutorial, you start with a simple to-do list app. By the end, you'll be able to create, update, and manage tasks with an agent in an App Service app.
20
20
21
-
:::image type="content" source="media/tutorial-ai-agent-web-app-semantic-kernel-foundry-dotnet/semantic-kernel-agent.png" alt-text="Screenshot of a chat completion session with a semantic kernel agent.":::
21
+
:::image type="content" source="media/tutorial-ai-agent-web-app-semantic-kernel-java/semantic-kernel-agent.png" alt-text="Screenshot of a chat completion session with a semantic kernel agent.":::
22
22
23
23
> [!NOTE]
24
24
> Azure AI Foundry Agent Service currently doesn't have a Java SDK, so isn't included in the scope of this article.
@@ -32,7 +32,7 @@ In this tutorial, you learn how to:
32
32
33
33
## Prerequisites
34
34
35
-
- An Azure account with an active subscription - [Create an account for free](https://azure.microsoft.com/free/dotnet).
35
+
- An Azure account with an active subscription - [Create an account for free](https://azure.microsoft.com/free/java).
36
36
- GitHub account to use GitHub Codespaces - [Learn more about GitHub Codespaces](https://docs.github.com/codespaces/overview).
37
37
38
38
## Open the sample with Codespaces
@@ -48,7 +48,7 @@ The easiest way to get started is by using GitHub Codespaces, which provides a c
48
48
4. Run the application locally:
49
49
50
50
```bash
51
-
dotnet run
51
+
mvn spring-boot:run
52
52
```
53
53
54
54
5. When you see **Your application running on port 8080 is available**, select **Open in Browser** and add a few tasks.
@@ -64,11 +64,11 @@ You can find the initialization code in the `SemanticKernelAgentService` contruc
64
64
- Creates a [chat completion agent](/semantic-kernel/frameworks/agent/agent-types/chat-completion-agent?pivots=programming-language-java), and configures it to let the AI model automatically invoke functions (`FunctionChoiceBehavior.auto(true)`).
65
65
- Creates an agent thread that automatically manages the chat history.
@@ -111,13 +111,17 @@ Each time the prompt is received, the server code uses ChatCompletionAgent.invok
111
111
112
112
## Create and configure the Azure AI Foundry resource
113
113
114
-
1. In the [Azure AI Foundry portal](https://ai.azure.com), deploy a model of your choice (see [Quickstart: Get started with Azure AI Foundry](/azure/ai-foundry/quickstarts/get-started-code?tabs=azure-ai-foundry&pivots=fdp-project)). A project and a default agent are created for you in the process.
114
+
1. In the [Azure AI Foundry portal](https://ai.azure.com), deploy a model of your choice (see [Quickstart: Get started with Azure AI Foundry](/azure/ai-foundry/quickstarts/get-started-code?tabs=azure-ai-foundry&pivots=fdp-project)). A project and a model deployment is created for you in the process.
115
115
116
116
1. From the left menu, select **Overview**.
117
117
118
118
1. Select **Azure OpenAI** and copy the URL in **Azure OpenAI endpoint** for later.
119
119
120
-
:::image type="content" source="media/tutorial-ai-agent-web-app-semantic-kernel-foundry-dotnet/foundry-project-endpoints.png" alt-text="Screenshot showing how to copy the OpenAI endpoint and the foundry project endpoint in the foundry portal.":::
120
+
:::image type="content" source="media/tutorial-ai-agent-web-app-semantic-kernel-java/foundry-openai-endpoint.png" alt-text="Screenshot showing how to copy the OpenAI endpoint in the foundry portal.":::
121
+
122
+
1. Select **Models + endpoints** and copy the name of the model deployment for later.
123
+
124
+
:::image type="content" source="media/tutorial-ai-agent-web-app-semantic-kernel-java/foundry-model-deployment.png" alt-text="Screenshot showing how to copy the model deployment name in the foundry portal.":::
121
125
122
126
## Assign required permissions
123
127
@@ -140,7 +144,7 @@ Each time the prompt is received, the server code uses ChatCompletionAgent.invok
|`azure.openai.endpoint`| Azure OpenAI endpoint (copied from the Overview page). This is needed by the Semantic Kernel agent. |
143
-
|`azure.openai.deployment`| Model name in the deployment (copied from the Agents setup pane). This is needed by the Semantic Kernel agent. |
147
+
|`azure.openai.deployment`| Model name in the deployment (copied from the Models + endpoints page). This is needed by the Semantic Kernel agent. |
144
148
145
149
> [!NOTE]
146
150
> To keep the tutorial simple, you'll use these variables in *src/main/resources/application.properties* instead of overwriting them with app settings in App Service.
@@ -171,7 +175,7 @@ Each time the prompt is received, the server code uses ChatCompletionAgent.invok
171
175
172
176
1. Navigate to the deployed application again and test the chat agents.
173
177
174
-
:::image type="content" source="media/tutorial-ai-agent-web-app-semantic-java/semantic-kernel-agent.png" alt-text="Screenshot of a chat completion session with a semantic kernel agent.":::
178
+
:::image type="content" source="media/tutorial-ai-agent-web-app-semantic-kernel-java/semantic-kernel-agent.png" alt-text="Screenshot of a chat completion session with a semantic kernel agent.":::
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-ai-integrate-azure-ai-agent-dotnet.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Integrate web app with OpenAPI in Azure AI Foundry Agent Service (.NET)
3
-
description: Empower your existing web apps by integrating their capabilities into Azure AI Foundry Agent Service with OpenAPI, enabling AI agents to perform real-world tasks.
3
+
description: Empower your existing .NET web apps by integrating their capabilities into Azure AI Foundry Agent Service with OpenAPI, enabling AI agents to perform real-world tasks.
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-ai-integrate-azure-ai-agent-java.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
2
title: Integrate web app with OpenAPI in Azure AI Foundry Agent Service (Java)
3
-
description: Empower your existing web apps by integrating their capabilities into Azure AI Foundry Agent Service with OpenAPI, enabling AI agents to perform real-world tasks.
3
+
description: Empower your existing Java web apps by integrating their capabilities into Azure AI Foundry Agent Service with OpenAPI, enabling AI agents to perform real-world tasks.
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-ai-model-context-protocol-server-dotnet.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Web app as MCP server in GitHub Copilot Chat agent mode (.NET)
3
-
description: Empower GitHub Copilot Chat with your existing web apps by integrating their capabilities as Model Context Protocol servers, enabling Copilot Chat to perform real-world tasks.
3
+
description: Empower GitHub Copilot Chat with your existing .NET web apps by integrating their capabilities as Model Context Protocol servers, enabling Copilot Chat to perform real-world tasks.
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-ai-model-context-protocol-server-java.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
2
title: Web app as MCP server in GitHub Copilot Chat agent mode (Java)
3
-
description: Empower GitHub Copilot Chat with your existing web apps by integrating their capabilities as Model Context Protocol servers, enabling Copilot Chat to perform real-world tasks.
3
+
description: Empower GitHub Copilot Chat with your existing Java web apps by integrating their capabilities as Model Context Protocol servers, enabling Copilot Chat to perform real-world tasks.
0 commit comments