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/invoke-openapi-web-app-from-azure-ai-agent-service.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ In the following tutorial, you're using an Azure AI Agent to invoke an API hoste
22
22
To complete this tutorial, you need an Azure AI Agent project and a RESTful API hosted on Azure App Service. The API should have an OpenAPI specification that defines the API. The OpenAPI specification for the sample app in this tutorial is provided.
23
23
24
24
1. Ensure you complete the prerequisites and setup steps in the [quickstart](https://learn.microsoft.com/azure/ai-services/agents/quickstart?pivots=programming-language-python-azure). This quickstart walks you through creating your Azure AI Hub and Agent project. You should complete the agent configuration and agent sample the quickstart provides to get a full understanding of the tool and ensure your setup works.
25
+
1. Ensure you have [Git installed](https://git-scm.com/downloads).
26
+
1. Ensure you have the latest [.NET 9.0 SDK installed](https://dotnet.microsoft.com/download/dotnet/9.0).
25
27
1. Follow the guidance in the next section to create the sample app and deploy it to Azure App Service. The sample app is a simple to-do list app that allows you to create, read, update, and delete items from the list.
26
28
27
29
## Create and deploy the sample app
@@ -32,8 +34,6 @@ To complete this tutorial, you need an Azure AI Agent project and a RESTful API
32
34
az login
33
35
```
34
36
35
-
1. Ensure you have [Git installed](https://git-scm.com/downloads).
36
-
1. Ensure you have the latest [.NET 9.0 SDK installed](https://dotnet.microsoft.com/download/dotnet/9.0).
37
37
1. In the terminal window, use `cd` to go to a working directory.
38
38
1. Clone the sample repository, and then go to the repository root. This repository contains an app based on the tutorial [ASP.NET Core web API documentation with Swagger / OpenAPI](/aspnet/core/tutorials/web-api-help-pages-using-swagger?tabs=visual-studio). It uses a Swagger generator to serve the [Swagger UI](https://swagger.io/swagger-ui/) and the Swagger JSON endpoint.
39
39
@@ -49,16 +49,16 @@ To complete this tutorial, you need an Azure AI Agent project and a RESTful API
49
49
dotnet run
50
50
```
51
51
52
-
1. Navigate to `http://localhost:5000/swagger`in a browser to try the Swagger UI.
53
-
1. Navigate to `http://localhost:5000/api/todo` to see the to-do list.
54
-
1. To stop the app, press `Ctrl+C`in the terminal window.
52
+
1. Browse to `http://localhost:5000/swagger`in a browser to try the Swagger UI.
53
+
1. Browse to `http://localhost:5000/api/todo` to see the to-do list.
54
+
1. Press `Ctrl+C`in the terminal window to stop the app.
55
55
1. To deploy the app to Azure App Service, run the following command.
56
56
57
57
```bash
58
58
az webapp up
59
59
```
60
60
61
-
1. After the app is deployed, navigate to the URL provided in the terminal window to see the app running in Azure App Service. It can take a few minutes for the app to be fully deployed and running. Note this URL for later use.
61
+
1. After the app is deployed, browse to the URL provided in the terminal window to see the app running in Azure App Service. It can take a few minutes for the app to be fully deployed and running. Note this URL for later use.
62
62
63
63
## Connect your AI Agent to your App Service API
64
64
@@ -402,7 +402,7 @@ Now that you have the required infrastructure, you can put it all together and s
402
402
403
403
## Run the OpenAPI Spec tool
404
404
405
-
1. Open a terminal and navigate to the directory where you created the `tool.py` and `swagger.json` files. To run the script, run the following command.
405
+
1. Open a terminal and browse to the directory where you created the `tool.py` and `swagger.json` files. To run the script, run the following command.
0 commit comments