Skip to content

Commit 0072a32

Browse files
committed
acro and undo other doc
1 parent 794ddc1 commit 0072a32

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

articles/app-service/app-service-web-tutorial-rest-api.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ author: msangapu-msft
1212

1313
# Tutorial: Host a RESTful API with CORS in Azure App Service
1414

15-
[Azure App Service](overview.md) provides a highly scalable self-patching web hosting service. In addition, App Service has built-in support for [cross-origin resource sharing (CORS)](https://wikipedia.org/wiki/Cross-Origin_Resource_Sharing) for RESTful APIs. This tutorial shows how to deploy an ASP.NET API app to App Service with CORS support. You configure the app using command-line tools and deploy the app using Git.
15+
[Azure App Service](overview.md) provides a highly scalable self-patching web hosting service. In addition, App Service has built-in support for [cross-origin resource sharing (CORS)](https://wikipedia.org/wiki/Cross-Origin_Resource_Sharing) for RESTful APIs. This tutorial shows how to deploy an ASP.NET Core API app to App Service with CORS support. You configure the app using command-line tools and deploy the app using Git.
1616

1717
In this tutorial, you learn how to:
1818

@@ -28,11 +28,11 @@ You can complete this tutorial on macOS, Linux, or Windows.
2828
## Prerequisites
2929

3030
* <a href="https://git-scm.com/" target="_blank">Install Git.</a>
31-
* <a href="https://dotnet.microsoft.com/download/dotnet/9.0" target="_blank">Install the latest .NET 9.0 SDK.</a>
31+
* <a href="https://dotnet.microsoft.com/download/dotnet-core/3.1" target="_blank">Install the latest .NET Core 3.1 SDK.</a>
3232

33-
## Create a local ASP.NET app
33+
## Create a local ASP.NET Core app
3434

35-
In this step, you set up the local ASP.NET project. App Service supports the same workflow for APIs written in other languages.
35+
In this step, you set up the local ASP.NET Core project. App Service supports the same workflow for APIs written in other languages.
3636

3737
### Clone the sample application
3838

@@ -67,7 +67,7 @@ In this step, you set up the local ASP.NET project. App Service supports the sam
6767

6868
1. Navigate to `http://localhost:5000/swagger` in a browser to try the Swagger UI.
6969

70-
![Screenshot of an ASP.NET API running locally.](./media/app-service-web-tutorial-rest-api/azure-app-service-local-swagger-ui.png)
70+
![Screenshot of an ASP.NET Core API running locally.](./media/app-service-web-tutorial-rest-api/azure-app-service-local-swagger-ui.png)
7171

7272
1. Navigate to `http://localhost:5000/api/todo` to see a list of ToDo JSON items.
7373

@@ -79,7 +79,7 @@ In this step, you set up the local ASP.NET project. App Service supports the sam
7979

8080
## Deploy the app to Azure
8181

82-
In this step, you deploy your .NET application to App Service.
82+
In this step, you deploy your .NET Core application to App Service.
8383

8484
### Configure local Git deployment
8585

@@ -132,7 +132,7 @@ In this step, you deploy your .NET application to App Service.
132132

133133
1. Navigate to `http://<app_name>.azurewebsites.net/swagger` in a browser and view the Swagger UI.
134134

135-
![Screenshot of an ASP.NET API running in Azure App Service.](./media/app-service-web-tutorial-rest-api/azure-app-service-browse-app.png)
135+
![Screenshot of an ASP.NET Core API running in Azure App Service.](./media/app-service-web-tutorial-rest-api/azure-app-service-browse-app.png)
136136

137137
1. Navigate to `http://<app_name>.azurewebsites.net/swagger/v1/swagger.json` to see the _swagger.json_ for your deployed API.
138138

articles/app-service/invoke-openapi-web-app-from-azure-ai-agent-service.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ ms.collection: ce-skilling-ai-copilot
1515

1616
## Prerequisites
1717

18-
To complete this tutorial, you need an Azure AI Agent project as well as 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.
18+
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.
1919

20-
1. Ensure you've completed the prerequisites and setup steps in the [quickstart](/azure/ai-services/agents/quickstart.md). This quickstart walks you through creating your Azure AI Hub and Agent project. You can also complete the agent configuration and sample the quickstart provides to get a full understanding of the tool and ensure your setup works.
21-
1. Ensure you've completed the [RESTful API tutorial](./app-service-web-tutorial-rest-api.md) in Azure App Service. You don't need to complete the part of the tutorial where CORS functionality is added. This tutorial walks you through creating a to-do list app.
20+
1. Ensure you complete the prerequisites and setup steps in the [quickstart](/azure/ai-services/agents/quickstart.md). This quickstart walks you through creating your Azure AI Hub and Agent project. You can also complete the agent configuration and sample the quickstart provides to get a full understanding of the tool and ensure your setup works.
21+
1. Ensure you complete the [RESTful API tutorial](./app-service-web-tutorial-rest-api.md) in Azure App Service. You don't need to complete the part of the tutorial where CORS functionality is added. This tutorial walks you through creating a to-do list app.
2222

2323
## Connect your AI Agent to your App Service API
2424

2525
### Create and review the OpenAPI specification
2626

27-
Now that you've created the required infrastructure, you can put it all together and start interacting with your API using your AI Agent. For a general overview on how to do this, see [How to use Azure AI Agent Service with OpenAPI Specified Tools](/azure/ai-services/agents/how-to/tools/openapi-spec.md). That overview includes prerequisites and additional requirements including how to include authentication if your API requires it. The provided sample API is publicly accessible so authentication isn't required.
27+
Now that you have the required infrastructure, you can put it all together and start interacting with your API using your AI Agent. For a general overview on how to do get started, see [How to use Azure AI Agent Service with OpenAPI Specified Tools](/azure/ai-services/agents/how-to/tools/openapi-spec.md). That overview includes prerequisites and other requirements including how to include authentication if your API requires it. The provided sample API is publicly accessible so authentication isn't required.
2828

29-
1. The following is the OpenAPI specification for the sample app that is provided. On your local machine, create a file called `swagger.json` and copy the following contents.
29+
1. The following specification is the OpenAPI specification for the sample app that is provided. On your local machine, create a file called `swagger.json` and copy the following contents.
3030

3131
```json
3232
{
@@ -279,11 +279,11 @@ Now that you've created the required infrastructure, you can put it all together
279279
}
280280
```
281281

282-
1. Review the file to understand the API and its endpoints. The `operationId` values are CRUD operations that can be performed on the to-do list. Once this is up and running, you can use your AI Agent to invoke the API and perform the various operations on your behalf using natural language. At the end of the specification, you'll see the `security` section. This is where you add authentication if your API requires it. This section is left blank for the sample app, but is included because it's required by the AI Agent Service.
282+
1. Review the file to understand the API and its endpoints. The `operationId` values are CRUD operations that can be performed on the to-do list. Once the app is up and running, you can use your AI Agent to invoke the API and perform the various operations on your behalf using natural language. At the end of the specification, you have the `security` section. This section is where you add authentication if your API requires it. This section is left blank for the sample app, but is included because the AI Agent Service requires it.
283283

284284
### Create the OpenAPI Spec tool definition
285285

286-
1. Create a file in the same directory as your `swagger.json` file called `tool.py`. Copy the following contents into the file. Ensure you've completed the prerequisites and setup steps in the [quickstart](/azure/ai-services/agents/quickstart.md) to get the required packages installed as well as get you logged into your Azure account.
286+
1. Create a file in the same directory as your `swagger.json` file called `tool.py`. Copy the following contents into the file. Ensure you complete the prerequisites and setup steps in the [quickstart](/azure/ai-services/agents/quickstart.md) to get the required packages installed as well as get you logged into your Azure account.
287287

288288
```python
289289
import os
@@ -358,7 +358,7 @@ Now that you've created the required infrastructure, you can put it all together
358358
print("Deleted agent")
359359
```
360360

361-
1. Replace the placeholder for your project's connection string. If you need help with this, see the [Configure and run agent section of the quickstart](/azure/ai-services/agents/quickstart.md#configure-and-run-agent) for details on how to get your connection string.
361+
1. Replace the placeholder for your project's connection string. If you need help with this step, see the [Configure and run agent section of the quickstart](/azure/ai-services/agents/quickstart.md#configure-and-run-agent) for details on how to get your connection string.
362362
1. Review the file to understand how the OpenAPI tool is created and how the AI Agent is invoked. Each time time the tool is invoked, the AI Agent will use the OpenAPI specification to determine how to interact with the API. The OpenAPI specification is passed into the file. The `message_content` variable is where you enter the natural language command that you want the AI Agent to perform. You're prompted to enter the message once you run the script. The AI Agent will then invoke the API and return the results. It will create and delete the AI Agent each time you run the script.
363363

364364
## Run the OpenAPI Spec tool

0 commit comments

Comments
 (0)