Skip to content

Commit cc732dc

Browse files
committed
Line edits2
1 parent 6e5d08a commit cc732dc

11 files changed

+19
-23
lines changed

learn-pr/azure/build-serverless-api-with-functions-api-management/includes/1-introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In this module, you learn how to use API Management to assemble multiple microse
66

77
## Learning objectives
88

9-
In this module, you will:
9+
In this module, you'll:
1010

1111
- Identify the value of Azure API Management in a serverless application.
1212
- Import an Azure Function App as an API in Azure API Management.

learn-pr/azure/build-serverless-api-with-functions-api-management/includes/2-import-function-app-api-management.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ The Azure API Management service enables you to construct an API from a set of d
22

33
In your online store, each part of the application is implemented as a microservice - one for the product details, one for order details, and so on. A separate team manages each microservice, and each team uses continuous development and delivery to update and deploy their code regularly. You want to find a way to assemble these microservices into a single product and then manage that product centrally.
44

5-
In this unit, you learn how Azure API Management is useful in a serverless architecture, by building single APIs from individual microservices.
5+
In this unit, you learn how Azure API Management is useful in a serverless architecture by building single APIs from individual microservices.
66

77
## Serverless architecture and microservices
88

9-
Microservices are a popular approach to the architecture of distributed applications. When you build an application as a collection of microservices, you create many different small services. Each service has a defined domain of responsibility, and is developed, deployed, and scaled independently. This modular architecture results in an application that is easier to understand, improve, and test. It also makes continuous delivery easier, because you change only a small part of the whole application when you deploy a microservice.
9+
Microservices are a popular approach to the architecture of distributed applications. When you build an application as a collection of microservices, you create many different small services. Each service has a defined domain of responsibility and is developed, deployed, and scaled independently. This modular architecture results in an application that is easier to understand, improve, and test. It also makes continuous delivery easier, because you change only a small part of the whole application when you deploy a microservice.
1010

1111
Another complementary trend in distributed software development is serverless architecture. In this approach, a host organization publishes a set of services that developers can use to run their code. The developers don't have to concern themselves with the supporting hardware, operating systems, underlying software, and other infrastructure. Instead, the code runs in stateless computing resources triggered by requests. Costs are only incurred when the services execute, so you don't pay much for services that are rarely used.
1212

1313
## Azure Functions
1414

15-
Azure Functions is a service that enables serverless architectures in Azure. You can write functions, without worrying about the supporting infrastructure, in many different languages, including C#, Java, JavaScript, PowerShell, and Python. You can also use libraries from NuGet and the Node Package Manager (npm), and authenticate users with the OAuth standard from providers such as Active Directory, Facebook, Google, and Microsoft Account.
15+
Azure Functions is a service that enables serverless architectures in Azure. You can write functions without worrying about the supporting infrastructure in many different languages, including C#, Java, JavaScript, PowerShell, and Python. You can use libraries from NuGet and the Node Package Manager (npm). You can also authenticate users with the OAuth standard from providers such as Active Directory, Facebook, Google, and Microsoft Account.
1616

17-
When you write a function, you choose a template to use, depending on how you want to trigger your code. For example, if you want to execute the function in response to an HTTP request, use the **HTTPTrigger** template. You can use other templates to execute when there are new messages in a queue, a Blob storage container, or on a predefined schedule.
17+
When you write a function, you choose a template to use depending on how you want to trigger your code. For example, if you want to execute the function in response to an HTTP request, use the **HTTPTrigger** template. You can use other templates to execute when there are new messages in a queue, a Blob storage container, or on a predefined schedule.
1818

1919
When you use Azure Functions in a Consumption Plan, you're charged only for the time that your code runs.
2020

2121
## Azure API Management
2222

23-
Azure API Management is a fully managed cloud service that you can use to publish, secure, transform, maintain, and monitor APIs. It helps organizations publish APIs to external, partner, and internal developers to unlock the potential of their data and services. API Management handles all the tasks involved in mediating API calls. Including, request authentication and authorization, rate limit and quota enforcement, request and response transformation, logging and tracing, and API version management. API Management enables you to create and manage modern API gateways for existing backend services no matter where they're hosted.
23+
Azure API Management is a fully managed cloud service that you can use to publish, secure, transform, maintain, and monitor APIs. It helps organizations publish APIs to external, partner, and internal developers to unlock the potential of their data and services. API Management handles all the tasks involved in mediating API calls including request authentication and authorization, rate limit and quota enforcement, request and response transformation, logging and tracing, and API version management. API Management enables you to create and manage modern API gateways for existing backend services no matter where they're hosted.
2424

2525
Because you can publish Azure Functions through API Management, you can use them to implement a microservices architecture; each function implements a microservice. By adding several functions to a single API Management product, you can build those microservices into an integrated distributed application. Once the application is built, you can use API Management policies to implement caching or ensure security requirements.
2626

learn-pr/azure/build-serverless-api-with-functions-api-management/includes/3-exercise-import-function-app-api-management.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ Now, let's test the ProductDetails function to see how it behaves before we add
4747
4848
1. On the **Input** tab, in the **HTTP method** field dropdown list, select **GET**.
4949
50-
1. Under **Query**, Select **Add parameter**
51-
52-
1. In the **Name** field, enter *id*, and in the **Value** field, enter *3*, and then select **Run**.
50+
1. Under **Query** in the **Name** field, enter *id*, and in the **Value** field, enter *3*. Then select **Run**.
5351
5452
:::image type="content" source="../media/3-test-input.png" alt-text="Screenshot of the input pane for Test + Run, with the input parameter for the HTTP GET method highlighted.":::
5553
@@ -59,7 +57,7 @@ Now, let's test the ProductDetails function to see how it behaves before we add
5957
6058
Optionally, you can also test the function by inputting ID values 1 and 2.
6159
62-
1. Select **Close** to close the Input Output tabs for Code + Test.
60+
1. Select **Close** to close the Input/Output tabs for Code + Test.
6361
6462
1. On the command bar of the ProductDetails Code + Test pane, select **Get function URL**. Notice that the URL subdomain is the name of your function app, followed by the **azurewebsites.net** domain.
6563
@@ -73,14 +71,14 @@ After the function app is deployed and tested, let's export it as an API using A
7371
1. In the resource menu, select **All resources**. The **All resources** pane appears.
7472

7573
1. Sort the list of resources by type. Notice you have an OrderFunction app and a ProductFunction app.
76-
74+
7775
1. Select the **ProductFunction** function app.
7876

7977
1. In the Function App menu, scroll to the **API** category, and then select **API Management**. The **API Management** pane for ProductFunction function app appears.
8078

8179
:::image type="content" source="../media/3-create-api.png" alt-text="Screenshot showing menu selection to open the API Management app service.":::
8280

83-
1. Under the **API Management** field, select **Create new**. The **Install API Management gateway** pane appears.
81+
1. Under the **API Management** field, select **Create new**. The **Create API Management service** pane appears.
8482

8583
:::image type="content" source="../media/3-api-details.png" alt-text="Screenshot showing settings for an API Management service.":::
8684

@@ -96,7 +94,7 @@ After the function app is deployed and tested, let's export it as an API using A
9694
| Administrator email | Enter an email address. |
9795
| Pricing tier | Consumption (99.95% SLA) |
9896

99-
1. Select **Next: Monitoring** and clear the **Application Insights** option.
97+
1. Select **Next: Monitor + secure** and clear the **Application Insights** option.
10098

10199
1. Select **Review + Create**. When the validation completes, select **Create** to create a linked API Management instance. Allow several minutes for the export to complete.
102100

learn-pr/azure/build-serverless-api-with-functions-api-management/includes/4-import-additional-functions-existing-api-gateway.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Microservices architectures can be difficult to manage. For example, you might rely on separate teams implementing cross-cutting requirements, such as security, in a consistent way.
22

3-
In the online store, your developer teams built the product details and order details microservices at different host URLs. Also the order details service responds by using XML. You want to ensure that all responses are in JSON format to make things easier for the client app developers.
3+
In the online store, your developer teams built the product details and order details microservices at different host URLs. Also, the order details service responds by using XML. You want to ensure that all responses are in JSON format to make things easier for the client app developers.
44

55
In this unit, you learn about the features of API Management. You can use these features to integrate different microservices and present them to client applications with consistent behavior at a single URL.
66

learn-pr/azure/build-serverless-api-with-functions-api-management/includes/5-exercise-import-additional-functions-existing-api-gateway.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ Before we add the Orders function app to the API, let's test the function it hos
1212

1313
1. From the list of functions for your function app, select **OrderDetails**. The **OrderDetails** Function Overview pane appears.
1414

15-
1. In the Order Details menu, under **Developer**, select **Code + Test**. The **Code + Test** pane for the OrderDetails function appears, showing the contents of the `function.json` file.
15+
1. In Order Details, the **Code + Test** pane shows the contents of the `function.json` file. On the command bar, select **Test/Run**. The **Input** parameters tab for your OrderDetails function appears.
1616

1717
:::image type="content" source="../media/5-test-order-details.png" alt-text="OrderDetails JSON code, with Code + Test in menu and Test/Run in command bar highlighted.":::
1818

19-
1. On the command bar, select **Test/Run**. The **Input** parameters tab for your OrderDetails function appears.
20-
21-
1. In the **HTTP method** field, select **GET** from the dropdown list, and then under **Query**, select **Add parameter**, and in the **Name** field, enter *name*, and in the **Value** field, enter *Chiba* (value is case-sensitive), and then select **Run**.
19+
1. In the **HTTP method** field, select **GET** from the dropdown list. Under **Query** in the **Name** field enter *name*. In the **Value** field enter *Chiba* (value is case-sensitive) and then select **Run**.
2220

2321
1. A log console opens and displays the status of the request. The **Output** tab displays the HTTP response code and content in JSON format.
2422

@@ -48,15 +46,15 @@ In this step, we add the Order function to the API Management resource that we c
4846

4947
1. To select your function app, select **Browse**. The **Import Azure Functions** pane appears.
5048

51-
1. On the **Configure required settings** field, select **Select**.
49+
1. On the **Configure required settings** field choose **Select**.
5250

5351
![Screenshot of the Import Azure Functions dialog box with Configure required settings field and Select button highlighted.](../media/5-import-azure-function-app-03-inline.png)(../media/5-import-azure-function-app-03-expanded.png#lightbox)
5452

5553
The **Select Azure Function App** pane appears.
5654

57-
1. Select **OrderFunctionNNNNNNN**, and then select **Select**. The **Import Azure Functions** pane reappears with your OrderDetails function app configured.
55+
1. Select your **OrderFunction**, and then choose **Select**. The **Import Azure Functions** pane reappears with your OrderDetails function app configured.
5856

59-
1. Ensure that **OrderDetails** is checked, and then, at the bottom of the page, select **Select** to add the function. The **Create from Function App** dialog box appears.
57+
1. Ensure that **OrderDetails** is checked, and then at the bottom of the page choose **Select** to add the function. The **Create from Function App** dialog box appears.
6058

6159
1. Replace the value in the **API URL suffix** field with *orders*. Notice how this change updates the Base URL. Select **Create** to create your API.
6260

@@ -68,7 +66,7 @@ In this step, we add the Order function to the API Management resource that we c
6866

6967
Now that we added OrderDetails to our API, let's test it by using the API Management tools in the Azure portal.
7068

71-
1. On the OrderFunctionNNNNNN APIs Design tab, under **All operations**, select **GET OrderDetails**, and then select the **Test** tab.
69+
1. On your **OrderFunction** APIs Design tab under **All operations**, select **GET OrderDetails**, and then select the **Test** tab.
7270

7371
1. In the **Query parameters** section, select **Add parameter**, and enter *name* in the **NAME** field and *Chiba* and in the **VALUE** field. Select **Send**.
7472

learn-pr/azure/build-serverless-api-with-functions-api-management/includes/6-summary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ In this module, you published a serverless API with two Azure Functions apps in
66

77
- [An introduction to Azure Functions](/azure/azure-functions/functions-overview)
88
- [API Management documentation](/azure/api-management/)
9-
- [Import an Azure Function App as an API in Azure API Management](/azure/api-management/import-function-app-as-api)
9+
- [Import an Azure Function App as an API in Azure API Management](/azure/api-management/import-function-app-as-api)
36.5 KB
Loading
6.62 KB
Loading
2.38 KB
Loading
-17.3 KB
Loading

0 commit comments

Comments
 (0)