title | description | services | author | ms.service | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|
Export APIs from Azure API Management to Microsoft Power Platform | Microsoft Docs |
Learn how to export an API from API Management as a custom connector to Power Apps and Power Automate in the Microsoft Power Platform. |
api-management |
dlepow |
api-management |
how-to |
07/27/2021 |
danlep |
Citizen developers using the Microsoft Power Platform often need to reach the business capabilities that are developed by professional developers and deployed in Azure. Azure API Management enables professional developers to publish their backend service as APIs, and easily export these APIs to the Power Platform (Power Apps and Power Automate) as custom connectors for discovery and consumption by citizen developers.
This article walks through the steps in the Azure portal to create a custom Power Platform connector to an API in API Management. With this capability, citizen developers can use the Power Platform to create and distribute apps that are based on internal and external APIs managed by API Management.
- Complete the following quickstart: Create an Azure API Management instance
- Make sure there is an API in your API Management instance that you'd like to export to the Power Platform
- Make sure you have a Power Apps or Power Automate environment
-
Navigate to your API Management service in the Azure portal.
-
In the menu, under APIs, select Power Platform.
-
Select Create a connector.
-
In the Create a connector window, do the following:
- Select an API to publish to the Power Platform.
- Select a Power Platform environment to publish the API to.
- Enter a display name, which will be used as the name of the custom connector.
- Optionally, if the API is protected by an OAuth 2.0 server, provide details including Client ID, Client secret, Authorization URL, Token URL, and Refresh URL.
-
Select Create.
:::image type="content" source="media/export-api-power-platform/create-custom-connector.png" alt-text="Create custom connector to API in API Management":::
Once the connector is created, navigate to your Power Apps or Power Automate environment. You will see the API listed under Data > Custom Connectors.
:::image type="content" source="media/export-api-power-platform/custom-connector-power-app.png" alt-text="Custom connector in Power Platform":::
Note
To call the API from the Power Apps test console, you need to add the "https://flow.microsoft.com" URL as an origin to the CORS policy in your API Management instance.