You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A container app named `my-gateway` in the `myResourceGroup` resource group. In this example, the container app is created using the `mcr.microsoft.com/azure-api-management/gateway:2.5.0` image. Learn more about the self-hosted gateway [container images](self-hosted-gateway-overview.md#packaging).
114
116
* Support for external ingress to the container app on port 8080.
115
117
* A minimum of 1 and a maximum of 3 replicas of the container app.
116
-
* A connection from the self-hosted gateway to the API Management instance using configuration values passed in environment variables. For details, see [self-hosted gateway container configuration settings](self-hosted-gateway-settings-reference.md.).
118
+
* A connection from the self-hosted gateway to the API Management instance using configuration values passed in environment variables. For details, see the self-hosted gateway [container configuration settings](self-hosted-gateway-settings-reference.md).
117
119
118
120
### Confirm that the container app is running
119
121
@@ -136,7 +138,7 @@ This command creates:
136
138
1. In the left menu, under **Deployment and infrastructure**, select**Gateways**.
137
139
1. Check the **Status** of your gateway. If the gateway is healthy, it reports regular gateway heartbeats.
138
140
139
-
:::image type="content" source="media/how-to-deploy-self-hosted-gateway-container-apps/gateway-heartbeat.png" alt-text="Screenshot of gateway status in the portal.":::
141
+
:::image type="content" source="media/how-to-deploy-self-hosted-gateway-container-apps/gateway-heartbeat.png" alt-text="Screenshot of gateway status in the portal." lightbox="media/how-to-deploy-self-hosted-gateway-container-apps/gateway-heartbeat.png":::
140
142
141
143
## Example scenario
142
144
@@ -146,7 +148,7 @@ The following example shows how you can use the self-hosted gateway to access an
146
148
147
149
***Step 1.** Deploy a container app hosting an API in the same environment as the self-hosted gateway
148
150
***Step 2.** Add the API to your API Management instance
149
-
***Step 4.** Call the API through the self-hosted gateway
151
+
***Step 3.** Call the API through the self-hosted gateway
150
152
151
153
### Step 1. Deploy a container app hosting an API in the same environment as the self-hosted gateway
152
154
@@ -198,15 +200,27 @@ The following are example steps to add an API to your API Management instance an
198
200
1. **URL**: Select **Get** and enter `/albums`for the endpoint.
199
201
1. Select **Save**.
200
202
201
-
### Step 4. Call the API through the self-hosted gateway
203
+
### Step 3. Call the API through the self-hosted gateway
202
204
203
205
Call the API using the FQDN of the self-hosted gateway running in the container app. Find the FQDN on the container app's **Overview** page in the Azure portal, or run the following `az containerapp show` command.
204
206
207
+
# [Bash](#tab/bash)
208
+
205
209
```azurecli-interactive
210
+
#!/bin/bash
206
211
az containerapp show ----name my-gateway --resource-group myResourceGroup \
For example, use the following `curl` command to call the API at the `/albumapi/albums` endpoint. If your API requires a subscription key, pass a valid subscription key for your API Management instance as a header in the request:
0 commit comments