Skip to content

Commit 4663161

Browse files
committed
misc edits and azurecli parameters
1 parent 28ab242 commit 4663161

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

articles/spring-apps/how-to-configure-enterprise-spring-cloud-gateway.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,13 @@ After a few minutes, **URL** shows the configured endpoint URL. Save the URL to
6060

6161
#### [Azure CLI](#tab/Azure-CLI)
6262

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`.
6464

6565
```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
6770
```
6871

6972
---
@@ -89,7 +92,7 @@ You can use the Azure portal and the Azure CLI to edit metadata properties.
8992

9093
#### [Azure portal](#tab/Azure-portal)
9194

92-
To edit metadata in the Azure portal, do these steps:
95+
To edit metadata in the Azure portal, use the following steps:
9396

9497
1. Open your Azure Spring Apps instance.
9598
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
104107

105108
```azurecli
106109
az spring gateway update \
110+
--resource-group <resource-group-name> \
111+
--service <Azure-Spring-Apps-instance-name> \
107112
--api-description "<api-description>" \
108113
--api-title "<api-title>" \
109114
--api-version "v0.1" \
@@ -145,6 +150,8 @@ Use the following command to configure SSO properties for VMware Spring Cloud Ga
145150

146151
```azurecli
147152
az spring gateway update \
153+
--resource-group <resource-group-name> \
154+
--service <Azure-Spring-Apps-instance-name> \
148155
--client-id <client-id> \
149156
--client-secret <client-secret> \
150157
--issuer-uri <issuer-uri> \
@@ -266,6 +273,8 @@ Use the following command to set up APM using Azure CLI:
266273
267274
```azurecli
268275
az spring gateway update \
276+
--resource-group <resource-group-name> \
277+
--service <Azure-Spring-Apps-instance-name> \
269278
--apm-types <APM-type> \
270279
--properties <key=value> \
271280
--secrets <key=value>
@@ -275,6 +284,8 @@ The allowed values for `--apm-types` are `ApplicationInsights`, `AppDynamics`, `
275284
276285
```azurecli
277286
az spring gateway update \
287+
--resource-group <resource-group-name> \
288+
--service <Azure-Spring-Apps-instance-name> \
278289
--apm-types ApplicationInsights \
279290
--properties APPLICATIONINSIGHTS_CONNECTION_STRING=<THE CONNECTION STRING OF YOUR APPINSIGHTS> APPLICATIONINSIGHTS_SAMPLE_RATE=10
280291
```
@@ -295,7 +306,7 @@ To enhance security and protect sensitive information from interception by unaut
295306
296307
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.
297308
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).
299310
300311
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.
301312
@@ -317,6 +328,8 @@ Use the following command to enable or disable certificate verification using th
317328
318329
```azurecli
319330
az spring gateway update \
331+
--resource-group <resource-group-name> \
332+
--service <Azure-Spring-Apps-instance-name> \
320333
--enable-cert-verify <value> \
321334
--certificate-names <certificate-name-in-Azure-Spring-Apps>
322335
```
@@ -349,6 +362,8 @@ You must specify the protocol as HTTPS in the route configuration. The following
349362
```azurecli
350363
az spring gateway route-config create \
351364
--name test-tls-app \
365+
--resource-group <resource-group-name> \
366+
--service <Azure-Spring-Apps-instance-name> \
352367
--routes-file test-tls-route.json
353368
```
354369

@@ -362,7 +377,7 @@ As certificates expire, you need to rotate certificates in Spring Cloud Gateway
362377
- Import the certificates into 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).
363378
- Synchronize the certificates, using the Azure portal or the Azure CLI.
364379

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.
366381

367382
#### [Azure portal](#tab/Azure-portal)
368383

@@ -381,15 +396,13 @@ Use the following steps to synchronize certificates.
381396
Use the following command to synchronize a certificate for Spring Cloud Gateway.
382397

383398
```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> \
386401
--service <Azure-Spring-Apps-instance-name>
387402
```
388403

389404
---
390405

391-
The gateway will restart after synchronization to ensure that gateway uses the new certificate for all future connections.
392-
393406
## Next steps
394407

395408
- [How to Use Spring Cloud Gateway](how-to-use-enterprise-spring-cloud-gateway.md)

0 commit comments

Comments
 (0)