Skip to content

Commit 7d74335

Browse files
committed
format
1 parent 0907711 commit 7d74335

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

articles/api-management/how-to-deploy-self-hosted-gateway-container-apps.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ This command creates:
136136

137137
1. Sign in to the [Azure portal](https://portal.azure.com), and navigate to your API Management instance.
138138
1. In the left menu, under **Deployment and infrastructure**, select **Gateways**.
139-
1. Check the **Status** of your gateway. If the gateway is healthy, it reports regular gateway heartbeats.
139+
1. On the **Overview** page, check the **Status** of your gateway. If the gateway is healthy, it reports regular gateway heartbeats.
140140

141141
:::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":::
142142

@@ -157,12 +157,23 @@ For example, deploy an example music album API to a container app. For later acc
157157
1. Download [Python source code](https://codeload.github.com/azure-samples/containerapps-albumapi-python/zip/refs/heads/main) to your local machine. If you prefer, download the source code in another language of your choice.
158158
1. Extract the source code to a local folder and change to the *containerapps-albumapi-python-main/src* folder.
159159
1. Run the following [az containerapp up](/cli/azure/containerapp#az-containerapp-up) command to deploy the API to a container app in the same environment as the self-hosted gateway. Note the `.` at the end of the command, which specifies the current folder as the source for the container app.
160-
160+
161+
# [Bash](#tab/bash)
161162
```azurecli-interactive
163+
#!/bin/bash
162164
az containerapp up --name albums-api \
163165
--resource-group myResourceGroup --location centralus \
164166
--environment my-environment --source .
165167
```
168+
169+
# [PowerShell](#tab/psh)
170+
```azurecli
171+
az containerapp up --name albums-api `
172+
--resource-group myResourceGroup --location centralus `
173+
--environment my-environment --source .
174+
```
175+
---
176+
166177
1. Confirm that the container app is running and accessible externally at the FQDN returned in the command output. By default the API is accessible at the `/albums` endpoint. Example: `https://albums-api.happyvalley-abcd1234.centralus.azurecontainerapps.io/albums/albums`.
167178

168179
### Configure the API for internal ingress
@@ -221,7 +232,7 @@ az containerapp show ----name my-gateway --resource-group myResourceGroup `
221232
---
222233
223234
224-
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:
235+
For example, run 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:
225236
226237
```bash
227238
curl -i https://my-gateway.happyvalley-abcd1234.centralus.azurecontainerapps.io/albumapi/albums -H "Ocp-Apim-Subscription-Key: <subscription-key>"

0 commit comments

Comments
 (0)