Skip to content

Commit ced6531

Browse files
committed
small edits, azurecli code fixes in how-to-use
1 parent 4663161 commit ced6531

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ To edit SSO properties in the Azure portal, use the following steps:
142142
1. Specify values for the properties listed for **SSO**.
143143
1. Select **Save**.
144144

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":::
146146

147147
#### [Azure CLI](#tab/Azure-CLI)
148148

@@ -371,7 +371,7 @@ You can now test whether the application is TLS enabled with the endpoint of the
371371

372372
### Rotate certificates
373373

374-
As certificates expire, you need to rotate certificates in Spring Cloud Gateway using the following procedure:
374+
As certificates expire, you need to rotate certificates in Spring Cloud Gateway by using the following procedure:
375375

376376
- Generate new certificates from a trusted CA.
377377
- 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).

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

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ Use the following command to create a route config. The `--app-name` value shoul
5656
```azurecli
5757
az spring gateway route-config create \
5858
--name <route-config-name> \
59+
--resource-group <resource-group-name> \
60+
--service <Azure-Spring-Apps-instance-name> \
5961
--app-name <app-name> \
6062
--routes-file <routes-file.json>
6163
```
@@ -119,10 +121,13 @@ The following table lists the route definitions. All the properties are optional
119121

120122
Use the following steps to create a sample application using Spring Cloud Gateway.
121123

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:
123125

124126
```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>
126131
```
127132

128133
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
133138

134139
:::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":::
135140

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

138143
```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
140148
```
141149

142150
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
171179
```azurecli
172180
az spring gateway route-config create \
173181
--name test-api-routes \
182+
--resource-group <resource-group-name> \
183+
--service <Azure-Spring-Apps-instance-name> \
174184
--app-name test-app \
175185
--routes-file test-api.json
176186
```
@@ -188,7 +198,7 @@ Use the following steps to create a sample application using Spring Cloud Gatewa
188198
1. Use the following commands to query the routing rules:
189199

190200
```azurecli
191-
az configure --defaults group=<resource group name> spring=<service name>
201+
az configure --defaults group=<resource-group-name> spring=<Azure-Spring-Apps-instance-name>
192202
193203
az spring gateway route-config show \
194204
--name test-api-routes \
@@ -249,8 +259,10 @@ Then, apply the route definition using the following Azure CLI command:
249259

250260
```azurecli
251261
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>
254266
--routes-file <json-file-with-routes>
255267
```
256268

@@ -280,7 +292,7 @@ az spring spring-cloud-gateway create \
280292
```azurecli
281293
az spring spring-cloud-gateway delete \
282294
--resource-group <resource-group-name> \
283-
--service <Azure-Spring-Apps-service-instance-name>
295+
--service <Azure-Spring-Apps-instance-name>
284296
```
285297

286298
---

0 commit comments

Comments
 (0)