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-configure-enterprise-spring-cloud-gateway.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,7 +142,7 @@ To edit SSO properties in the Azure portal, use the following steps:
142
142
1. Specify values for the properties listed for **SSO**.
143
143
1. Select **Save**.
144
144
145
-
:::image type="content" source="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-sso-configuration.png" alt-text="Screenshot of Azure portal showing the Spring Cloud Gateway configuration page for an Azure Spring Apps instance with the Single Sign On section highlighted." lightbox="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-sso-configuration.png":::
145
+
:::image type="content" source="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-sso-configuration.png" alt-text="Screenshot of Azure portal showing the Spring Cloud Gateway configuration page for an Azure Spring Apps instance, with the Single Sign On section highlighted." lightbox="media/how-to-configure-enterprise-spring-cloud-gateway/gateway-sso-configuration.png":::
146
146
147
147
#### [Azure CLI](#tab/Azure-CLI)
148
148
@@ -371,7 +371,7 @@ You can now test whether the application is TLS enabled with the endpoint of the
371
371
372
372
### Rotate certificates
373
373
374
-
As certificates expire, you need to rotate certificates in SpringCloudGateway using the following procedure:
374
+
As certificates expire, you need to rotate certificates in SpringCloudGatewayby using the following procedure:
375
375
376
376
-Generatenew certificates from a trusted CA.
377
377
- Import the certificates into AzureSpringApps. For more information, see the [Import a certificate](how-to-use-tls-certificate.md#import-a-certificate) section of [UseTLS/SSL certificates in your application in AzureSpringApps](how-to-use-tls-certificate.md).
Copy file name to clipboardExpand all lines: articles/spring-apps/how-to-use-enterprise-spring-cloud-gateway.md
+20-8Lines changed: 20 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,8 @@ Use the following command to create a route config. The `--app-name` value shoul
56
56
```azurecli
57
57
az spring gateway route-config create \
58
58
--name <route-config-name> \
59
+
--resource-group <resource-group-name> \
60
+
--service <Azure-Spring-Apps-instance-name> \
59
61
--app-name <app-name> \
60
62
--routes-file <routes-file.json>
61
63
```
@@ -119,10 +121,13 @@ The following table lists the route definitions. All the properties are optional
119
121
120
122
Use the following steps to create a sample application using Spring Cloud Gateway.
121
123
122
-
1.Create a test application in Azure Spring Apps by using the following command:
124
+
1.Use the following command to create a test application named *test-app*in Azure Spring Apps:
123
125
124
126
```azurecli
125
-
az spring app create test-app
127
+
az spring app create \
128
+
name test-app \
129
+
resource-group <resource-group-name> \
130
+
service <Azure-Spring-Apps-instance-name>
126
131
```
127
132
128
133
1. Assign a public endpoint to the gateway to access it.
@@ -133,10 +138,13 @@ Use the following steps to create a sample application using Spring Cloud Gatewa
133
138
134
139
:::image type="content" source="media/how-to-use-enterprise-spring-cloud-gateway/gateway-overview.png" alt-text="Screenshot of Azure portal Azure Spring Apps overview page with 'Assign endpoint' highlighted." lightbox="media/how-to-use-enterprise-spring-cloud-gateway/gateway-overview.png":::
135
140
136
-
You can also use Azure CLI to assign the endpoint, as shown in the following command:
141
+
You can also use Azure CLI to assign the endpoint. Use the following command to assign the endpoint. Specify `true` to assign the endpoint, otherwise `false`.
137
142
138
143
```azurecli
139
-
az spring gateway update --assign-endpoint
144
+
az spring gateway update \
145
+
--resource-group <resource-group-name> \
146
+
--service <Azure-Spring-Apps-instance-name> \
147
+
--assign-endpoint true
140
148
```
141
149
142
150
1. Create a rule to access the health check endpoint of the test app through Spring Cloud Gateway.
@@ -171,6 +179,8 @@ Use the following steps to create a sample application using Spring Cloud Gatewa
171
179
```azurecli
172
180
az spring gateway route-config create \
173
181
--name test-api-routes \
182
+
--resource-group <resource-group-name> \
183
+
--service <Azure-Spring-Apps-instance-name> \
174
184
--app-name test-app \
175
185
--routes-file test-api.json
176
186
```
@@ -188,7 +198,7 @@ Use the following steps to create a sample application using Spring Cloud Gatewa
188
198
1. Use the following commands to query the routing rules:
189
199
190
200
```azurecli
191
-
az configure --defaults group=<resourcegroupname> spring=<service name>
201
+
az configure --defaults group=<resource-group-name> spring=<Azure-Spring-Apps-instance-name>
192
202
193
203
az spring gateway route-config show \
194
204
--name test-api-routes \
@@ -249,8 +259,10 @@ Then, apply the route definition using the following Azure CLI command:
249
259
250
260
```azurecli
251
261
az spring gateway route-config create \
252
-
--name my-gateway-routes \
253
-
--app myapp
262
+
--name <route-config-name> \
263
+
--resource-group <resource-group-name> \
264
+
--service <Azure-Spring-Apps-instance-name> \
265
+
--app <app-name>
254
266
--routes-file <json-file-with-routes>
255
267
```
256
268
@@ -280,7 +292,7 @@ az spring spring-cloud-gateway create \
0 commit comments