Skip to content

Commit d1ff6b1

Browse files
committed
Updates.
1 parent 8082aac commit d1ff6b1

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

articles/container-apps/how-to-use-path-based-routing.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ zone_pivot_groups: azure-cli-bicep
1313

1414
# Use path-based routing with Azure Container Apps (preview)
1515

16-
In this article, you learn how to use path-based routing with Azure Container Apps.
16+
In this article, you learn how to use path-based routing with Azure Container Apps. With path-based routing, you create a fully qualified domain name (FQDN) on your container apps environment. You then use rules to route requests to this FQDN to different container apps, depending on the path.
1717

1818
## Prerequisites
1919

@@ -224,6 +224,15 @@ resource httpRouteConfig 'Microsoft.App/managedEnvironments/httpRouteConfigs@202
224224
output fqdn string = httpRouteConfig.properties.fqdn
225225
```
226226

227+
1. Deploy the Bicep file with the following command:
228+
229+
```azurecli
230+
az deployment group create `
231+
--name $ROUTE_CONFIG_NAME `
232+
--resource-group $RESOURCE_GROUP `
233+
--template-file routing.bicep
234+
```
235+
227236
1. In the output, find `outputs`, which contains your HTTP route configuration's fully qualified domain name (FQDN). For example:
228237

229238
```
@@ -247,7 +256,7 @@ output fqdn string = httpRouteConfig.properties.fqdn
247256

248257
If you're not going to continue to use this application, run the following command to delete the resource group along with all the resources created in this quickstart.
249258

250-
>[!CAUTION]
259+
> [!CAUTION]
251260
> The following command deletes the specified resource group and all resources contained within it. If resources outside the scope of this quickstart exist in the specified resource group, they will also be deleted.
252261
253262
```azurecli
@@ -261,4 +270,5 @@ az group delete --name my-container-apps
261270

262271
- [Quickstart and samples](https://github.com/Tratcher/HttpRouteConfigBicep/tree/master)
263272
- [Azure CLI reference](/cli/azure/containerapp/env/http-route-config?view=azure-cli-latest)
264-
- [Bicep reference](/azure/templates/microsoft.app/2024-10-02-preview/managedenvironments/httprouteconfigs?pivots=deployment-language-bicep)
273+
- [Bicep reference](/azure/templates/microsoft.app/2024-10-02-preview/managedenvironments/httprouteconfigs?pivots=deployment-language-bicep)
274+
- [ARM template reference](/azure/templates/microsoft.app/2024-10-02-preview/managedenvironments/httprouteconfigs?pivots=deployment-language-arm-template)

0 commit comments

Comments
 (0)