Редактиране

Споделяне чрез


Export APIs from Azure API Management to the Power Platform

APPLIES TO: All API Management tiers

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 Power Platform custom 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.

Prerequisites

Create a custom connector to an API

  1. Navigate to your API Management service in the Azure portal.

  2. In the menu, under APIs, select Power Platform.

  3. Select Create a connector.

  4. In the Create a connector window, do the following:

    1. Select an API to publish to the Power Platform.
    2. Select a Power Platform environment to publish the API to.
    3. Enter a display name, which will be used as the name of the custom connector.
    4. Optionally, if the API doesn't already require a subscription, select Create subscription key connection parameter.
    5. 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.
  5. Select Create.

    Create custom connector to API in API Management

Once the connector is created, navigate to your Power Apps or Power Automate environment. You'll see the API listed under Data > Custom Connectors.

Custom connector in Power Platform

Manage a custom connector

You can manage your custom connector in your Power Apps or Power Platform environment. For details about settings, see Create a custom connector from scratch.

  1. Select your connector from the list of custom connectors.
  2. Select the pencil (Edit) icon to edit and test the custom connector.

Important

To call the API from the Power Apps test console, you need to configure a CORS policy in your API Management instance and create a policy in the custom connector to set an Origin header in HTTP requests. For more information, see Enable CORS policies for custom connector.

Update a custom connector

From API Management, you can update a connector to target a different API or Power Apps environment, or to update authorization settings.

  1. Navigate to your API Management service in the Azure portal.
  2. In the menu, under APIs, select Power Platform.
  3. Select Update a connector.
  4. Select the API you want to update the connector for, update settings as needed, and select Update.

Next steps