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
+22-9Lines changed: 22 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,10 +60,13 @@ After a few minutes, **URL** shows the configured endpoint URL. Save the URL to
60
60
61
61
#### [Azure CLI](#tab/Azure-CLI)
62
62
63
-
Use the following command to assign the endpoint.
63
+
Use the following command to assign the endpoint. Specify `true` to assign the endpoint, otherwise `false`.
64
64
65
65
```azurecli
66
-
az spring gateway update --assign-endpoint
66
+
az spring gateway update \
67
+
--resource-group <resource-group-name> \
68
+
--service <Azure-Spring-Apps-instance-name> \
69
+
--assign-endpoint true
67
70
```
68
71
69
72
---
@@ -89,7 +92,7 @@ You can use the Azure portal and the Azure CLI to edit metadata properties.
89
92
90
93
#### [Azure portal](#tab/Azure-portal)
91
94
92
-
To edit metadata in the Azure portal, do these steps:
95
+
To edit metadata in the Azure portal, use the following steps:
93
96
94
97
1. Open your Azure Spring Apps instance.
95
98
1. Select **Spring Cloud Gateway** in the navigation pane, and then select **Configuration**.
@@ -104,6 +107,8 @@ Use the following command to configure VMware Spring Cloud Gateway metadata prop
104
107
105
108
```azurecli
106
109
az spring gateway update \
110
+
--resource-group <resource-group-name> \
111
+
--service <Azure-Spring-Apps-instance-name> \
107
112
--api-description "<api-description>" \
108
113
--api-title "<api-title>" \
109
114
--api-version "v0.1" \
@@ -145,6 +150,8 @@ Use the following command to configure SSO properties for VMware Spring Cloud Ga
145
150
146
151
```azurecli
147
152
az spring gateway update \
153
+
--resource-group <resource-group-name> \
154
+
--service <Azure-Spring-Apps-instance-name> \
148
155
--client-id <client-id> \
149
156
--client-secret <client-secret> \
150
157
--issuer-uri <issuer-uri> \
@@ -266,6 +273,8 @@ Use the following command to set up APM using Azure CLI:
266
273
267
274
```azurecli
268
275
az spring gateway update \
276
+
--resource-group <resource-group-name> \
277
+
--service <Azure-Spring-Apps-instance-name> \
269
278
--apm-types <APM-type> \
270
279
--properties <key=value> \
271
280
--secrets <key=value>
@@ -275,6 +284,8 @@ The allowed values for `--apm-types` are `ApplicationInsights`, `AppDynamics`, `
275
284
276
285
```azurecli
277
286
az spring gateway update \
287
+
--resource-group <resource-group-name> \
288
+
--service <Azure-Spring-Apps-instance-name> \
278
289
--apm-types ApplicationInsights \
279
290
--properties APPLICATIONINSIGHTS_CONNECTION_STRING=<THE CONNECTION STRING OF YOUR APPINSIGHTS> APPLICATIONINSIGHTS_SAMPLE_RATE=10
280
291
```
@@ -295,7 +306,7 @@ To enhance security and protect sensitive information from interception by unaut
295
306
296
307
Before configuring TLS, you need to have a TLS-enabled application and a TLS certificate. To prepare a TLS certificate, generate a certificate from a trusted certificate authority (CA). The certificate verifies the identity of the server and establishes a secure connection.
297
308
298
-
After you have a TLS-enabled application running in Azure Spring Apps, upload the certificate to Azure Spring Apps. For more information, see [Import a certificate](how-to-use-tls-certificate.md#import-a-certificate).
309
+
After you have a TLS-enabled application running in Azure Spring Apps, upload the certificate to Azure Spring Apps. For more information, see the [Import a certificate](how-to-use-tls-certificate.md#import-a-certificate) section of [Use TLS/SSL certificates in your application in Azure Spring Apps](how-to-use-tls-certificate.md).
299
310
300
311
With the certificate updated to Azure Spring Apps, you can now configure the TLS certificate for the gateway and enable certificate verification. You can configure the certification in the Azure portal or by using the Azure CLI.
301
312
@@ -317,6 +328,8 @@ Use the following command to enable or disable certificate verification using th
@@ -349,6 +362,8 @@ You must specify the protocol as HTTPS in the route configuration. The following
349
362
```azurecli
350
363
az spring gateway route-config create \
351
364
--name test-tls-app \
365
+
--resource-group <resource-group-name> \
366
+
--service <Azure-Spring-Apps-instance-name> \
352
367
--routes-file test-tls-route.json
353
368
```
354
369
@@ -362,7 +377,7 @@ As certificates expire, you need to rotate certificates in Spring Cloud Gateway
362
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).
363
378
-Synchronize the certificates, using the Azure portal or the AzureCLI.
364
379
365
-
The gateway automatically restarts to ensure that the gateway uses the new certificate for all connections.
380
+
The gateway restarts accordingly sto ensure that the gateway uses the new certificate for all connections.
366
381
367
382
#### [Azure portal](#tab/Azure-portal)
368
383
@@ -381,15 +396,13 @@ Use the following steps to synchronize certificates.
381
396
Use the following command to synchronize a certificate forSpringCloudGateway.
382
397
383
398
```azurecli
384
-
az spring gateway sync-cert
385
-
--resrouce-group <resource-group-name>
399
+
az spring gateway sync-cert \
400
+
--resource-group <resource-group-name> \
386
401
--service <Azure-Spring-Apps-instance-name>
387
402
```
388
403
389
404
---
390
405
391
-
The gateway will restart after synchronization to ensure that gateway uses the new certificate for all future connections.
392
-
393
406
## Next steps
394
407
395
408
- [How to UseSpringCloudGateway](how-to-use-enterprise-spring-cloud-gateway.md)
0 commit comments