Skip to content

Commit 307a2af

Browse files
Edits to java-petclinic-ai-tutorial.md.
1 parent f411f0b commit 307a2af

File tree

1 file changed

+21
-33
lines changed

1 file changed

+21
-33
lines changed

articles/container-apps/java-petclinic-ai-tutorial.md

Lines changed: 21 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
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
33
description: Use the azd automation tool to deploy a sample AI application to Azure Container Apps.
44
services: container-apps
55
author: KarlErickson
66
ms.author: sonwan
77
ms.service: azure-container-apps
88
ms.topic: tutorial
9-
ms.date: 02/10/2025
9+
ms.date: 02/12/2025
1010
ms.custom:
1111
#customer intent: As a developer, I want to see a simple example of an AI application deployed to Azure Container Apps.
1212
---
1313

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
1515

1616
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.
1717

@@ -21,59 +21,48 @@ For information on the architectural details of this application, see [Java PetC
2121

2222
## Considerations
2323

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.
2726

2827
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.
2928

3029
## Prerequisites
3130

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).
4938

5039
## Setup
5140

5241
1. Clone the sample application to your machine.
5342

54-
Open your terminal or command prompt to run the following command.
43+
Open your terminal or command prompt to run the following command:
5544

5645
```bash
5746
git clone https://github.com/Azure-Samples/spring-petclinic-ai.git
5847
```
5948

60-
1. Change into the *spring-petclinic-ai* folder.
49+
1. Change into the **spring-petclinic-ai** folder.
6150

6251
```bash
6352
cd spring-petclinic-ai
6453
```
6554

6655
1. If you don't already have it, install the Azure CLI.
6756
68-
```bash
57+
```azurecli
6958
az extension add --name containerapp --upgrade
7059
```
7160
7261
1. Log in to Azure.
7362
7463
Use the `auth` command to securely log in to your Azure account using the Azure CLI.
7564
76-
```bash
65+
```azurecli
7766
az auth login
7867
```
7968
@@ -83,7 +72,7 @@ Before you begin, ensure you have the following setup:
8372
8473
1. Automatically deploy the application by with the `azd up` command.
8574
86-
```azurecli
75+
```azdeveloper
8776
azd up
8877
```
8978
@@ -99,7 +88,7 @@ Before you begin, ensure you have the following setup:
9988

10089
Once you provide all the required values, you might need to wait upwards of 15 minutes for the application to deploy.
10190

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:
10392

10493
```output
10594
(✓) Done: Resource group: rg-my-first-ai (5.977s)
@@ -141,17 +130,17 @@ Before you begin, ensure you have the following setup:
141130

142131
1. Go to the application in a web browser using the URL you copied in the last step.
143132

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:
145134

146135
- List all registered pet owners.
147136
- Add a new pet owner named Steve.
148137
- Change Steve's name to Steven.
149138
- Add a pet named Spot.
150139
- List all vets in your system.
151140
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.
153142
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":::
155144
156145
## Updates
157146
@@ -179,4 +168,3 @@ az group delete --name rg-first-ai
179168
```
180169
181170
---
182-

0 commit comments

Comments
 (0)