Skip to content

Commit ce90573

Browse files
authored
Merge pull request #296893 from v-albemi/logic-app-api
AI Freshness Edit: Azure API Management
2 parents 2536d88 + 5bf0e19 commit ce90573

File tree

5 files changed

+38
-41
lines changed

5 files changed

+38
-41
lines changed
Lines changed: 38 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,93 @@
11
---
2-
title: Import a Logic App as an API with the Azure portal | Microsoft Docs
3-
description: This article shows you how to use API Management to import a Logic App (Consumption) resource as an API.
2+
title: Import a logic app as an API by using the Azure portal | Microsoft Docs
3+
description: Learn how to use Azure API Management to import a logic app (Consumption) resource as an API.
44
services: api-management
55
author: dlepow
66
ms.service: azure-api-management
77
ms.topic: how-to
8-
ms.date: 04/16/2021
8+
ms.date: 03/27/2025
99
ms.author: danlep
10+
11+
#customer intent: As a developer, I want to import a logic app as an API.
1012
---
1113

12-
# Import a Logic App as an API
14+
# Import a logic app as an API
1315

1416
[!INCLUDE [api-management-availability-all-tiers](../../includes/api-management-availability-all-tiers.md)]
1517

16-
This article shows how to import a Logic App as an API and test the imported API.
18+
This article shows how to import a logic app as an API and test the imported API.
1719

1820
[!INCLUDE [api-management-workspace-availability](../../includes/api-management-workspace-availability.md)]
1921

2022
In this article, you learn how to:
2123

2224
> [!div class="checklist"]
2325
>
24-
> - Import a Logic App as an API
26+
> - Import a logic app as an API
2527
> - Test the API in the Azure portal
2628
2729
> [!NOTE]
28-
> API Management supports automated import of a Logic App (Consumption) resource. which runs in the multi-tenant Logic Apps environment. Learn more about [single-tenant versus multi-tenant Logic Apps](../logic-apps/single-tenant-overview-compare.md).
30+
> Azure API Management supports automated import of a Logic App (Consumption) resource, which runs in the multitenant Logic Apps environment. For more information, see [Differences between Standard single-tenant logic apps and Consumption multitenant logic apps](../logic-apps/single-tenant-overview-compare.md).
2931
3032
## Prerequisites
3133

32-
- Complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md)
33-
- Make sure there is a Consumption plan-based Logic App resource in your subscription that exposes an HTTP endpoint. For more information, [Trigger workflows with HTTP endpoints](../logic-apps/logic-apps-http-endpoint.md)
34+
- Complete the quickstart [Create an Azure API Management instance](get-started-create-service-instance.md).
35+
- Make sure there's a Consumption plan-based Logic App resource in your subscription that exposes an HTTP endpoint. For more information, see [Trigger workflows with HTTP endpoints](../logic-apps/logic-apps-http-endpoint.md).
36+
37+
## Import and publish a backend API
3438

35-
[!INCLUDE [api-management-navigate-to-instance.md](../../includes/api-management-navigate-to-instance.md)]
39+
1. Navigate to your API Management service in the [Azure portal](https://portal.azure.com).
40+
1. In the left menu, in the **APIs** section, select **APIs**, and then select **+ Add API**.
3641

37-
## <a name="create-api"> </a>Import and publish a back-end API
42+
1. Select **Logic App** in the **Create from Azure resource** list:
3843

39-
1. Navigate to your API Management service in the Azure portal and select **APIs** from the menu.
40-
1. Select **Logic App** from the **Add a new API** list.
44+
:::image type="content" source="./media/import-logic-app-as-api/logic-app-select.png" alt-text="Screenshot that shows the Logic App tile.":::
4145

42-
:::image type="content" source="./media/import-logic-app-as-api/logic-app-select.png" alt-text="Select logic app category":::
46+
1. Select **Browse** to see the list of logic apps that have HTTP trigger in your subscription. (Logic apps that don't have an HTTP trigger won't appear in the list.)
4347

44-
1. Press **Browse** to see the list of Logic Apps with HTTP trigger in your subscription.
45-
* Logic apps *without* HTTP trigger will not appear in the list.
48+
:::image type="content" source="./media/import-logic-app-as-api/browse-logic-apps.png" alt-text="Screenshot that shows the Browse button." lightbox="./media/import-logic-app-as-api/browse-logic-apps.png":::
4649

47-
:::image type="content" source="./media/import-logic-app-as-api/browse-logic-apps.png" alt-text="Browse for existing logic apps with correct trigger":::
50+
1. Select the logic app:
4851

49-
1. Select the logic app.
52+
:::image type="content" source="./media/import-logic-app-as-api/select-logic-app-import-2.png" alt-text="Screenshot that shows the Select Logic App to import window." lightbox="./media/import-logic-app-as-api/select-logic-app-import-2.png":::
5053

51-
:::image type="content" source="./media/import-logic-app-as-api/select-logic-app-import-2.png" alt-text="Select logic app":::
54+
API Management finds the Swagger document that's associated with the selected app, fetches it, and imports it.
5255

53-
1. API Management finds the swagger associated with the selected app, fetches it, and imports it.
54-
1. Add an API URL suffix.
55-
* The suffix uniquely identifies this specific API in this API Management instance.
56+
1. Add an API URL suffix. The suffix uniquely identifies the API in the API Management instance.
5657

57-
:::image type="content" source="./media/import-logic-app-as-api/create-from-logic-app.png" alt-text="Finish up fields":::
58+
:::image type="content" source="./media/import-logic-app-as-api/create-from-logic-app.png" alt-text="Screenshot that shows values entered in the Create from Logic App window." lightbox="./media/import-logic-app-as-api/create-from-logic-app.png":::
5859

59-
1. If you want the API to be published and available to developers, Switch to the **Full** view and associate it with a **Product**. We use the *"Unlimited"* product in this example.
60-
* You can add your API to a product either during creation or later via the **Settings** tab.
60+
1. If you want the API to be published and available to developers, switch to the **Full** view and associate the API with a **Product**. This example uses the **Unlimited** product. (You can add your API to a product when you create it or later via the **Settings** tab.)
6161

6262
>[!NOTE]
63-
> Products are associations of one or more APIs offered to developers through the developer portal. First, developers must subscribe to a product to get access to the API. Once subscribed, they get a subscription key for any API in that product. As creator of the API Management instance, you are an administrator and are subscribed to every product by default.
63+
> Products are associations of one or more APIs offered to developers via the developer portal. First, developers must subscribe to a product to get access to the API. After they subscribe, they get a subscription key for any API in the product. As creator of the API Management instance, you're an administrator and are subscribed to every product by default.
6464
>
65-
> Each API Management instance comes with two default sample products:
65+
> In certain tiers, each API Management instance comes with two default sample products:
6666
> - **Starter**
6767
> - **Unlimited**
6868
69-
1. Enter other API settings.
70-
* You can set these values during creation or later by going to the **Settings** tab. The settings are explained in the [Import and publish your first API](import-and-publish.md#import-and-publish-a-backend-api) tutorial.
69+
1. Enter other API settings. You can set these values when you create the API or later by going to the **Settings** tab. The settings are explained in the [Import and publish your first API](import-and-publish.md#import-and-publish-a-backend-api) tutorial.
70+
7171
1. Select **Create**.
7272

7373
## Test the API in the Azure portal
7474

75-
Operations can be called directly from the Azure portal, which provides a convenient way to view and test the operations of an API.
75+
You can call operations directly from the Azure portal. This method provides a convenient way to view and test the operations of an API.
7676

77-
:::image type="content" source="./media/import-logic-app-as-api/test-logic-app-api.png" alt-text="Test the logic app":::
77+
:::image type="content" source="./media/import-logic-app-as-api/test-logic-app-api.png" alt-text="Screenshot that shows the steps for testing an API." lightbox="./media/import-logic-app-as-api/test-logic-app-api.png":::
7878

79-
1. Select the API you created in the previous step.
80-
2. Press the **Test** tab.
81-
3. Select the operation you want to test.
79+
1. Select the API that you created in the previous step.
80+
1. On the **Test** tab, select the operation that you want to test.
8281

8382
* The page displays fields for query parameters and headers.
84-
* One of the headers is "Ocp-Apim-Subscription-Key", for the product subscription key associated with this API.
85-
* As creator of the API Management instance, you are an administrator already, so the key is filled in automatically.
86-
87-
4. Press **Send**.
83+
* One of the headers is `Ocp-Apim-Subscription-Key`. This header is for the product subscription key that's associated with the API.
84+
* As creator of the API Management instance, you're an administrator, so the key is filled in automatically.
8885

89-
* When the test succeeds, the backend responds with **200 OK** and data.
86+
1. Select **Send**. When the test succeeds, the backend responds with **200 OK** and data.
9087

91-
[!INCLUDE [api-management-navigate-to-instance.md](../../includes/api-management-append-apis.md)]
88+
[!INCLUDE [api-management-append-apis.md](../../includes/api-management-append-apis.md)]
9289

9390
>[!NOTE]
94-
>Every Logic App has **manual-invoke** operation. To comprise your API of multiple logic apps and avoid collision, you need to rename the function. In order to rename the function/API, please navigate to the OpenAPI Specification editor and change the title value.
91+
>Every Logic App has a `manual-invoke` operation. If you want to combine multiple logic apps in an API, you need to rename the function. To rename the function/API, change the title value in the OpenAPI Specification editor.
9592
9693
[!INCLUDE [api-management-define-api-topics.md](../../includes/api-management-define-api-topics.md)]
27.6 KB
Loading
2.74 KB
Loading
-26.9 KB
Loading
3.5 KB
Loading

0 commit comments

Comments
 (0)