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
Copy file name to clipboardExpand all lines: articles/spring-apps/how-to-create-user-defined-route-instance.md
+32-3Lines changed: 32 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: karlerickson
5
5
ms.author: yinglzh
6
6
ms.service: spring-apps
7
7
ms.topic: article
8
-
ms.date: 09/25/2021
8
+
ms.date: 01/17/2023
9
9
ms.custom: devx-track-java, devx-track-azurecli
10
10
---
11
11
@@ -33,6 +33,13 @@ The following illustration shows an example of an Azure Spring Apps virtual netw
33
33
34
34
:::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.":::
35
35
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
+
36
43
### Define environment variables
37
44
38
45
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
259
266
--route-table $SERVICE_RUNTIME_ROUTE_TABLE_NAME
260
267
```
261
268
262
-
### Add a role for an Azure Spring Apps relying party
269
+
### Add a role for an Azure Spring Apps resource provider
263
270
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`:
265
272
266
273
```azurecli
267
274
VIRTUAL_NETWORK_RESOURCE_ID=$(az network vnet show \
@@ -274,6 +281,28 @@ az role assignment create \
274
281
--role "Owner" \
275
282
--scope ${VIRTUAL_NETWORK_RESOURCE_ID} \
276
283
--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 \
0 commit comments