Skip to content

Commit 18070d1

Browse files
authored
Merge pull request #306609 from v-thpra/ff-488533-azure-apimgmt-005b
Freshness - Azure API Management Center - 005
2 parents 9b30efc + 8bf7d5e commit 18070d1

3 files changed

Lines changed: 52 additions & 51 deletions

File tree

articles/api-management/enable-cors-power-platform.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: Enable CORS policies for Azure API Management custom connector
2+
title: Enable CORS Policies for Azure API Management Custom Connector
33
description: How to enable CORS policies in Azure API Management and Power Platform to test and use a custom connector from Power Platform applications.
44
services: api-management
55
author: dlepow
66

77
ms.service: azure-api-management
88
ms.topic: how-to
9-
ms.date: 03/24/2023
9+
ms.date: 10/07/2025
1010
ms.author: danlep
1111

1212
---
@@ -16,16 +16,15 @@ ms.author: danlep
1616

1717
Cross-origin resource sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any origins (domain, scheme, or port) other than its own from which a browser should permit loading resources. Customers can add a [CORS policy](cors-policy.md) to their web APIs in Azure API Management, which adds cross-origin resource sharing support to an operation or an API to allow cross-domain calls from browser-based clients.
1818

19-
If you've exported an API from API Management as a [custom connector](export-api-power-platform.md) in the Power Platform and want to use browser-based clients including Power Apps or Power Automate to call the API, you need to configure your API to explicitly enable cross-origin requests from Power Platform applications. This article shows you how to configure the following two necessary policy settings:
19+
If you export an API from API Management as a [custom connector](export-api-power-platform.md) in the Power Platform and want to use browser-based clients including Power Apps or Power Automate to call the API, you need to configure your API to explicitly enable cross-origin requests from Power Platform applications. This article shows you how to configure the following two necessary policy settings:
2020

21-
* Add a CORS policy to your API
22-
23-
* Add a policy to your custom connector that sets an Origin header on HTTP requests
21+
- Add a CORS policy to your API
22+
- Add a policy to your custom connector that sets an Origin header on HTTP requests
2423

2524
## Prerequisites
2625

27-
+ Complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md)
28-
+ Export an API from your API Management instance to a Power Platform environment as a [custom connector](export-api-power-platform.md)
26+
- Complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md)
27+
- Export an API from your API Management instance to a Power Platform environment as a [custom connector](export-api-power-platform.md)
2928

3029
## Add CORS policy to API in API Management
3130

@@ -38,14 +37,14 @@ Follow these steps to configure the CORS policy in API Management.
3837
1. Add the following **Allowed origin**: `https://make.powerapps.com`.
3938
1. Select **Save**.
4039

41-
* For more information about configuring a policy, see [Set or edit policies](set-edit-policies.md).
42-
* For details about the CORS policy, see the [cors](cors-policy.md) policy reference.
40+
- For more information about configuring a policy, see [Set or edit policies](set-edit-policies.md).
41+
- For details about the CORS policy, see the [cors](cors-policy.md) policy reference.
4342

4443
> [!NOTE]
4544
> If you already have an existing CORS policy at the service (all APIs) level to enable the test console of the developer portal, you can add the `https://make.powerapps.com` origin to that policy instead of configuring a separate policy for the API or operation.
4645
4746
> [!NOTE]
48-
> Depending on how the custom connector gets used in Power Platform applications, you might need to configure additional origins in the CORS policy. If you experience CORS problems when running Power Platform applications, use developer tools in your browser, tracing in API Management, or Application Insights to investigate the issues.
47+
> Depending on how the custom connector gets used in Power Platform applications, you might need to configure more origins in the CORS policy. If you experience CORS problems when running Power Platform applications, use developer tools in your browser, tracing in API Management, or Application Insights to investigate the issues.
4948
5049

5150
## Add policy to custom connector to set Origin header
@@ -57,7 +56,7 @@ For details about editing settings of a custom connector, see [Create a custom c
5756
1. Sign in to Power Apps or Power Automate.
5857
1. On the left pane, select **Data** > **Custom Connectors**.
5958
1. Select your connector from the list of custom connectors.
60-
1. Select the pencil (Edit) icon to edit the custom connector.
59+
1. To edit the custom connector, select the pencil (Edit) icon.
6160
1. Select **3. Definition**.
6261
1. In **Policies**, select **+ New policy**. Select or enter the following policy details.
6362

@@ -79,5 +78,5 @@ For details about editing settings of a custom connector, see [Create a custom c
7978

8079
## Related content
8180

82-
* [Learn more about the Power Platform](https://powerplatform.microsoft.com/)
83-
* [Learn more about creating and using custom connectors](/connectors/custom-connectors/)
81+
- [Learn more about the Power Platform](https://powerplatform.microsoft.com/)
82+
- [Learn more about creating and using custom connectors](/connectors/custom-connectors/)

articles/api-management/export-api-power-platform.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: Export APIs from Azure API Management to Microsoft Power Platform | Microsoft Docs
3-
description: Learn how to export an API from API Management as a custom connector to Power Apps and Power Automate in the Microsoft Power Platform.
3+
description: Learn how to export an API from API Management to the Microsoft Power Platform Copilot Studio, Power Apps, and Power Automate as a custom connector.
44
services: api-management
55
author: dlepow
66

77
ms.service: azure-api-management
88
ms.topic: how-to
9-
ms.date: 03/24/2023
9+
ms.date: 10/07/2025
1010
ms.author: danlep
1111
ms.custom: engagement-fy23
1212
---
@@ -15,14 +15,15 @@ ms.custom: engagement-fy23
1515

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

18-
Citizen developers using the Microsoft [Power Platform](https://powerplatform.microsoft.com) often need to reach the business capabilities that are developed by professional developers and deployed in Azure. [Azure API Management](https://aka.ms/apimrocks) enables professional developers to publish their backend service as APIs, and easily export these APIs to the Power Platform ([Copilot Studio](/microsoft-copilot-studio/fundamentals-what-is-copilot-studio), [Power Apps](/powerapps/powerapps-overview) and [Power Automate](/power-automate/getting-started)) as custom connectors for discovery and consumption by citizen developers.
18+
Citizen developers using the Microsoft [Power Platform](https://powerplatform.microsoft.com) often need to reach the business capabilities developed and deployed by professional developers in Azure. [Azure API Management](https://aka.ms/apimrocks) enables professional developers to publish their backend service as APIs, and easily export these APIs to the Power Platform ([Copilot Studio](/microsoft-copilot-studio/fundamentals-what-is-copilot-studio), [Power Apps](/powerapps/powerapps-overview), and [Power Automate](/power-automate/getting-started)) as custom connectors for discovery and consumption by citizen developers.
1919

2020
This article walks through the steps in the Azure portal to create a Power Platform [custom connector](/connectors/custom-connectors/) 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.
21+
2122
## Prerequisites
2223

23-
+ Complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md)
24-
+ Make sure there's an API in your API Management instance that you'd like to export to the Power Platform
25-
+ Make sure you have a Power Apps or Power Automate [environment](/powerapps/powerapps-overview#power-apps-for-admins)
24+
- Complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md)
25+
- Make sure there's an API in your API Management instance that you'd like to export to the Power Platform
26+
- Make sure you have a Power Apps or Power Automate [environment](/powerapps/powerapps-overview#power-apps-for-admins)
2627

2728
## Create a custom connector to an API
2829

@@ -32,14 +33,14 @@ This article walks through the steps in the Azure portal to create a Power Platf
3233
1. In the **Create a connector** window, do the following:
3334
1. Select an API to publish to the Power Platform.
3435
1. Select a Power Platform environment to publish the API to.
35-
1. Enter a display name, which will be used as the name of the custom connector.
36+
1. Enter a display name, which is used as the name of the custom connector.
3637
1. Optionally, if the API doesn't already require a subscription, select **Create subscription key connection parameter**.
3738
1. Optionally, if the API is [protected by an OAuth 2.0 server](api-management-howto-protect-backend-with-aad.md), provide details including **Client ID**, **Client secret**, **Authorization URL**, **Token URL**, and **Refresh URL**.
3839
1. Select **Create**.
3940

4041
:::image type="content" source="media/export-api-power-platform/create-custom-connector.png" alt-text="Create custom connector to API in API Management":::
4142

42-
Once the connector is created, navigate to your [Power Apps](https://make.powerapps.com) or [Power Automate](https://make.powerautomate.com) environment. You'll see the API listed under **Data > Custom Connectors**.
43+
Once the connector is created, navigate to your [Power Apps](https://make.powerapps.com) or [Power Automate](https://make.powerautomate.com) environment. Your API is listed under **Data > Custom connectors**.
4344

4445
:::image type="content" source="media/export-api-power-platform/custom-connector-power-app.png" alt-text="Custom connector in Power Platform":::
4546

@@ -63,11 +64,10 @@ From API Management, you can update a connector to target a different API or Pow
6364
1. Select **Update a connector**.
6465
1. Select the API you want to update the connector for, update settings as needed, and select **Update**.
6566

66-
6767
## Related content
6868

69-
* [Learn more about the Power Platform](https://powerplatform.microsoft.com/) and [licensing](/power-platform/admin/pricing-billing-skus)
70-
* [Learn more about creating and using custom connectors](/connectors/custom-connectors/)
71-
* [Learn common tasks in API Management by following the tutorials](./import-and-publish.md)
69+
- [Learn more about the Power Platform](https://powerplatform.microsoft.com/) and [licensing](/power-platform/admin/pricing-billing-skus)
70+
- [Learn more about creating and using custom connectors](/connectors/custom-connectors/)
71+
- [Learn common tasks in API Management by following the tutorials](./import-and-publish.md)
7272

7373

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: Deploy a self-hosted gateway to Azure Kubernetes Service
3-
description: Learn how to deploy self-hosted gateway component of Azure API Management to Azure Kubernetes Service
2+
title: Deploy a Self-Hosted Gateway to Azure Kubernetes Service
3+
description: Learn how to deploy self-hosted gateway component of Azure API Management to Azure Kubernetes Service.
44
author: dlepow
55
ms.service: azure-api-management
66
ms.topic: how-to
7-
ms.date: 06/11/2021
7+
ms.date: 10/07/2025
88
ms.author: danlep
99
---
1010

1111
# Deploy an Azure API Management self-hosted gateway to Azure Kubernetes Service
1212

1313
[!INCLUDE [api-management-availability-premium-dev](../../includes/api-management-availability-premium-dev.md)]
1414

15-
This article provides the steps for deploying self-hosted gateway component of Azure API Management to [Azure Kubernetes Service](https://azure.microsoft.com/services/kubernetes-service/). For deploying self-hosted gateway to a Kubernetes cluster, see the how-to article for deployment by using a [deployment YAML file](how-to-deploy-self-hosted-gateway-kubernetes.md) or [with Helm](how-to-deploy-self-hosted-gateway-kubernetes-helm.md).
15+
This article provides the steps for deploying self-hosted gateway component of Azure API Management to [Azure Kubernetes Service (AKS)](https://azure.microsoft.com/services/kubernetes-service/). For deploying self-hosted gateway to a Kubernetes cluster, see the how-to article for deployment by using a [deployment YAML file](how-to-deploy-self-hosted-gateway-kubernetes.md) or with [Helm](how-to-deploy-self-hosted-gateway-kubernetes-helm.md).
1616

1717
> [!NOTE]
1818
> You can also deploy self-hosted gateway to an [Azure Arc-enabled Kubernetes cluster](how-to-deploy-self-hosted-gateway-azure-arc.md) as a [cluster extension](/azure/azure-arc/kubernetes/extensions).
@@ -26,16 +26,16 @@ This article provides the steps for deploying self-hosted gateway component of A
2626
## Deploy the self-hosted gateway to AKS
2727

2828
1. Select **Gateways** from under **Deployment and infrastructure**.
29-
2. Select the self-hosted gateway resource you intend to deploy.
30-
3. Select **Deployment**.
31-
4. A new token in the **Token** text box was autogenerated for you using the default **Expiry** and **Secret Key** values. Adjust either or both if desired and select **Generate** to create a new token.
32-
5. Make sure **Kubernetes** is selected under **Deployment scripts**.
33-
6. Select **\<gateway-name\>.yml** file link next to **Deployment** to download the file.
34-
7. Adjust the `config.service.endpoint`, port mappings, and container name in the .yml file as needed.
35-
8. Depending on your scenario, you might need to change the [service type](/azure/aks/concepts-network-services).
36-
* The default value is `LoadBalancer`, which is the external load balancer.
37-
* You can use the [internal load balancer](/azure/aks/internal-lb) to restrict the access to the self-hosted gateway to only internal users.
38-
* The sample below uses `NodePort`.
29+
1. Select the self-hosted gateway resource you intend to deploy.
30+
1. Select **Deployment**.
31+
1. A new token in the **Token** text box was autogenerated for you using the default **Expiry** and **Secret Key** values. Adjust either or both if desired and select **Generate** to create a new token.
32+
1. Make sure **Kubernetes** is selected under **Deployment scripts**.
33+
1. Select the **\<gateway-name\>.yml** file link next to **Deployment** to download the file.
34+
1. Adjust the `config.service.endpoint`, port mappings, and container name in the .yml file as needed.
35+
1. Depending on your scenario, you might need to change the [service type](/azure/aks/concepts-network-services).
36+
- The default value is `LoadBalancer`, which is the external load balancer.
37+
- You can use the [internal load balancer](/azure/aks/internal-lb) to restrict the access to the self-hosted gateway to only internal users.
38+
- The following sample uses `NodePort`.
3939
1. Select the **copy** icon located at the right end of the **Deploy** text box to save the `kubectl` command to clipboard.
4040
1. Paste the command to the terminal (or command) window. The command expects the downloaded environment file to be present in the current directory.
4141

@@ -44,31 +44,33 @@ This article provides the steps for deploying self-hosted gateway component of A
4444
```
4545

4646
1. Execute the command. The command instructs your AKS cluster to:
47-
* Run the container, using self-hosted gateway's image downloaded from the Microsoft Container Registry.
48-
* Configure the container to expose HTTP (8080) and HTTPS (443) ports.
49-
1. Run the below command to check the gateway pod is running. Your pod name will be different.
47+
- Run the container, using self-hosted gateway's image downloaded from the Microsoft Container Registry.
48+
- Configure the container to expose HTTP (8080) and HTTPS (443) ports.
49+
1. Run the following command to check that your gateway pod is running. This pod name is an example.
5050

5151
```console
5252
kubectl get pods
5353
NAME READY STATUS RESTARTS AGE
5454
contoso-apim-gateway-59f5fb94c-s9stz 1/1 Running 0 1m
5555
```
5656

57-
1. Run the below command to check the gateway service is running. Your service name and IP addresses will be different.
57+
1. Run the following command to check that your gateway service is running. The service name and IP addresses are examples.
58+
5859
```console
5960
kubectl get services
6061
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
6162
contosogateway NodePort 10.110.230.87 <none> 80:32504/TCP,443:30043/TCP 1m
6263
```
63-
1. Return to the Azure portal and confirm that gateway node you deployed is reporting healthy status.
64+
65+
1. Return to the Azure portal and confirm that the gateway node you deployed is reporting healthy status.
6466

6567
> [!TIP]
66-
> Use `kubectl logs <gateway-pod-name>` command to view a snapshot of self-hosted gateway log.
68+
> Use the `kubectl logs <gateway-pod-name>` command to view a snapshot of the self-hosted gateway log.
6769

6870
## Related content
6971

70-
* To learn more about the self-hosted gateway, see [Azure API Management self-hosted gateway overview](self-hosted-gateway-overview.md).
71-
* Learn [how to deploy API Management self-hosted gateway to Azure Arc-enabled Kubernetes clusters](how-to-deploy-self-hosted-gateway-azure-arc.md).
72-
* Learn more about the [observability capabilities of the Azure API Management gateways](observability.md).
73-
* Learn more about guidance to [run the self-hosted gateway on Kubernetes in production](how-to-self-hosted-gateway-on-kubernetes-in-production.md).
74-
* Learn more about [Azure Kubernetes Service](/azure/aks/intro-kubernetes).
72+
- To learn more about the self-hosted gateway, see [Azure API Management self-hosted gateway overview](self-hosted-gateway-overview.md).
73+
- Learn [how to deploy API Management self-hosted gateway to Azure Arc-enabled Kubernetes clusters](how-to-deploy-self-hosted-gateway-azure-arc.md).
74+
- Learn more about the [observability capabilities of the Azure API Management gateways](observability.md).
75+
- Learn more about guidance to [run the self-hosted gateway on Kubernetes in production](how-to-self-hosted-gateway-on-kubernetes-in-production.md).
76+
- Learn more about [Azure Kubernetes Service](/azure/aks/intro-kubernetes).

0 commit comments

Comments
 (0)