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/container-apps/java-petclinic-ai-tutorial.md
+21-33Lines changed: 21 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
---
2
-
title: Deploy an AI-enabled instance of Spring PetClinic on Azure Container Apps
2
+
title: Deploy an AI-Enabled Instance of the Spring PetClinic on Azure Container Apps
3
3
description: Use the azd automation tool to deploy a sample AI application to Azure Container Apps.
4
4
services: container-apps
5
5
author: KarlErickson
6
6
ms.author: sonwan
7
7
ms.service: azure-container-apps
8
8
ms.topic: tutorial
9
-
ms.date: 02/10/2025
9
+
ms.date: 02/12/2025
10
10
ms.custom:
11
11
#customer intent: As a developer, I want to see a simple example of an AI application deployed to Azure Container Apps.
12
12
---
13
13
14
-
# Deploy an AI-enabled instance of Spring PetClinic on Azure Container Apps
14
+
# Deploy an AI-enabled instance of the Spring PetClinic on Azure Container Apps
15
15
16
16
In this article, you learn how to use [Azure OpenAI Service](/azure/ai-services/openai/overview) and Azure Container Apps to create a natural language interface for the Spring PetClinic sample application.
17
17
@@ -21,59 +21,48 @@ For information on the architectural details of this application, see [Java PetC
21
21
22
22
## Considerations
23
23
24
-
-**Deployment time**: The AI-enable application deployed in this article requires a series of connected services to operate. Deployment times can take upwards of 15 minutes to complete. Plan your time accordingly as you work through this tutorial.
25
-
26
-
-**Model availability**: The sample application uses [Azure OpenAI Service](/azure/ai-services/openai/overview) deployment modules *gpt-4o* and *text-embedding-ada-002*, which might not be available in all Azure regions.
24
+
- Deployment time: The AI-enable application deployed in this article requires a series of connected services to operate. Deployment times can take upwards of 15 minutes to complete. Plan your time accordingly as you work through this tutorial.
25
+
- Model availability: The sample application uses [Azure OpenAI Service](/azure/ai-services/openai/overview) deployment modules `gpt-4o` and `text-embedding-ada-002`, which might not be available in all Azure regions.
27
26
28
27
For more information on availability, see [Azure OpenAI Service models](/azure/ai-services/openai/concepts/models?tabs=global-standard,standard-chat-completions) and select your desired deployment region. For best results, consider using one of the following regions: East US, East US 2, North Central US, South Central US, Sweden Central, West US, or West US 3.
29
28
30
29
## Prerequisites
31
30
32
-
Before you begin, ensure you have the following setup:
33
-
34
-
-**Azure subscription**: You can [create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) if you don't have an existing account.
35
-
36
-
-**Security context**: To perform this quickstart, you need the `Contributor` and `User Access Administrator` roles, or the `Owner` role.
37
-
38
-
For more information, see [Assign Azure roles using the Azure portal](../role-based-access-control/role-assignments-portal.yml?tabs=current).
39
-
40
-
-**GitHub account**: Get one for [free](https://github.com/join).
41
-
42
-
-**git**: Install the latest version of [git](https://git-scm.com/downloads).
43
-
44
-
-**Microsoft Build of Open JDK**: Install [Microsoft Build of Open JDK](/java/openjdk/install). Use version 17 at a minimum.
45
-
46
-
-**Azure Command-Line interface (CLI)**: Install [Azure CLI](/azure/developer/azure-developer-cli/install-azd) to manage your Azure resources via command line.
47
-
48
-
-**Maven**: Install the latest version of [Maven](https://maven.apache.org/download.cgi).
31
+
- Azure subscription: You can [create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) if you don't have an existing account.
32
+
- Security context: To perform this quickstart, you need the `Contributor` and `User Access Administrator` roles, or the `Owner` role. For more information, see [Assign Azure roles using the Azure portal](../role-based-access-control/role-assignments-portal.yml?tabs=current).
33
+
- GitHub account: Get one for [free](https://github.com/join).
34
+
- git: Install the latest version of [git](https://git-scm.com/downloads).
35
+
- Microsoft Build of Open JDK: Install [Microsoft Build of Open JDK](/java/openjdk/install). Use version 17 at a minimum.
36
+
- Azure Command-Line interface (CLI): Install [Azure CLI](/azure/developer/azure-developer-cli/install-azd) to manage your Azure resources via command line.
37
+
- Maven: Install the latest version of [Maven](https://maven.apache.org/download.cgi).
49
38
50
39
## Setup
51
40
52
41
1. Clone the sample application to your machine.
53
42
54
-
Open your terminal or command prompt to run the following command.
43
+
Open your terminal or command prompt to run the following command:
1. Change into the **spring-petclinic-ai** folder.
61
50
62
51
```bash
63
52
cd spring-petclinic-ai
64
53
```
65
54
66
55
1. If you don't already have it, install the Azure CLI.
67
56
68
-
```bash
57
+
```azurecli
69
58
az extension add --name containerapp --upgrade
70
59
```
71
60
72
61
1. Log in to Azure.
73
62
74
63
Use the `auth` command to securely log in to your Azure account using the Azure CLI.
75
64
76
-
```bash
65
+
```azurecli
77
66
az auth login
78
67
```
79
68
@@ -83,7 +72,7 @@ Before you begin, ensure you have the following setup:
83
72
84
73
1. Automatically deploy the application by with the `azd up` command.
85
74
86
-
```azurecli
75
+
```azdeveloper
87
76
azd up
88
77
```
89
78
@@ -99,7 +88,7 @@ Before you begin, ensure you have the following setup:
99
88
100
89
Once you provide all the required values, you might need to wait upwards of 15 minutes for the application to deploy.
101
90
102
-
When deployment is complete, you see output similar to the following to notify you of a successful deployment.
91
+
When deployment is complete, you see output similar to the following to notify you of a successful deployment:
103
92
104
93
```output
105
94
(✓) Done: Resource group: rg-my-first-ai (5.977s)
@@ -141,17 +130,17 @@ Before you begin, ensure you have the following setup:
141
130
142
131
1. Go to the application in a web browser using the URL you copied in the last step.
143
132
144
-
1. You can interact with the chatbot by via prompts like:
133
+
1. You can interact with the chatbot via prompts like the following:
145
134
146
135
- List all registered pet owners.
147
136
- Add a new pet owner named Steve.
148
137
- Change Steve's name to Steven.
149
138
- Add a pet named Spot.
150
139
- List all vets in your system.
151
140
152
-
The following image shows the result of asking the application to add a new pet owner to the system.
141
+
The following image shows the result of asking the application to add a new pet owner to the system.
153
142
154
-
:::image type="content" source="media/first-java-ai-application/add-new-item.png" alt-text="Screenshot of AI chat assistant adding a new owner, complete with address and other information, and information about a pet." lightbox="media/first-java-ai-application/add-new-item.png":::
143
+
:::image type="content" source="media/first-java-ai-application/add-new-item.png" alt-text="Screenshot of AI chat assistant adding a new owner, complete with address and other information, and information about a pet." lightbox="media/first-java-ai-application/add-new-item.png":::
155
144
156
145
## Updates
157
146
@@ -179,4 +168,3 @@ az group delete --name rg-first-ai
0 commit comments