Skip to content

Commit 7d122ad

Browse files
Merge pull request #223857 from YinglueZhang-MS/yinglzh/udrrefine
feat: Refine UDR Doc
2 parents 672c6b0 + 6d13663 commit 7d122ad

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

articles/spring-apps/how-to-create-user-defined-route-instance.md

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: karlerickson
55
ms.author: yinglzh
66
ms.service: spring-apps
77
ms.topic: article
8-
ms.date: 09/25/2021
8+
ms.date: 01/17/2023
99
ms.custom: devx-track-java, devx-track-azurecli
1010
---
1111

@@ -33,6 +33,13 @@ The following illustration shows an example of an Azure Spring Apps virtual netw
3333

3434
:::image type="content" source="media/how-to-create-user-defined-route-instance/user-defined-route-example-architecture.png" lightbox="media/how-to-create-user-defined-route-instance/user-defined-route-example-architecture.png" alt-text="Architecture diagram that shows user-defined routing.":::
3535

36+
This diagram illustrates the following features of the architecture:
37+
38+
* Public ingress traffic must flow through firewall filters.
39+
* Each Azure Spring Apps instance is isolated within a dedicated subnet.
40+
* The firewall is owned and managed by customers.
41+
* This structure ensures that the firewall enables a healthy environment for all the functions you need.
42+
3643
### Define environment variables
3744

3845
The following example shows how to define a set of environment variables to be used in resource creation:
@@ -259,9 +266,9 @@ az network vnet subnet update
259266
--route-table $SERVICE_RUNTIME_ROUTE_TABLE_NAME
260267
```
261268

262-
### Add a role for an Azure Spring Apps relying party
269+
### Add a role for an Azure Spring Apps resource provider
263270

264-
The following example shows how to add a role for an Azure Spring Apps relying party:
271+
The following example shows how to add a role for the Azure Spring Apps resource provider. The role is assigned to all users identified by the string `e8de9221-a19c-4c81-b814-fd37c6caf9d2`:
265272

266273
```azurecli
267274
VIRTUAL_NETWORK_RESOURCE_ID=$(az network vnet show \
@@ -274,6 +281,28 @@ az role assignment create \
274281
--role "Owner" \
275282
--scope ${VIRTUAL_NETWORK_RESOURCE_ID} \
276283
--assignee e8de9221-a19c-4c81-b814-fd37c6caf9d2
284+
285+
APP_ROUTE_TABLE_RESOURCE_ID=$(az network route-table show \
286+
--name $APP_ROUTE_TABLE_NAME \
287+
--resource-group $RG \
288+
--query "id" \
289+
--output tsv)
290+
291+
az role assignment create \
292+
--role "Owner" \
293+
--scope ${APP_ROUTE_TABLE_RESOURCE_ID} \
294+
--assignee e8de9221-a19c-4c81-b814-fd37c6caf9d2
295+
296+
SERVICE_RUNTIME_ROUTE_TABLE_RESOURCE_ID=$(az network route-table show \
297+
--name $SERVICE_RUNTIME_ROUTE_TABLE_NAME \
298+
--resource-group $RG \
299+
--query "id" \
300+
--output tsv)
301+
302+
az role assignment create \
303+
--role "Owner" \
304+
--scope ${SERVICE_RUNTIME_ROUTE_TABLE_RESOURCE_ID} \
305+
--assignee e8de9221-a19c-4c81-b814-fd37c6caf9d2
277306
```
278307

279308
### Create an Azure Spring Apps instance with user-defined routing

0 commit comments

Comments
 (0)