Skip to content

Commit eac5601

Browse files
authored
Merge pull request #189556 from KarlErickson/karler-quickstarts
update AzSC quickstarts
2 parents ec428a7 + 4b97149 commit eac5601

19 files changed

+282
-231
lines changed

.openpublishing.publish.config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,7 @@
885885
"articles/virtual-machines/.openpublishing.redirection.virtual-machines.json",
886886
"articles/virtual-machine-scale-sets/.openpublishing.redirection.virtual-machine-scale-sets.json",
887887
"articles/mysql/.openpublishing.redirection.mysql.json",
888-
"articles/container-apps/.openpublishing.redirection.container-apps.json"
888+
"articles/container-apps/.openpublishing.redirection.container-apps.json",
889+
"articles/spring-cloud/.openpublishing.redirection.spring-cloud.json"
889890
]
890891
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"redirections": [
3+
{
4+
"source_path": "quickstart-setup-service-registry-enterprise.md",
5+
"redirect_url": "/azure/spring-cloud/quickstart-deploy-apps-enterprise",
6+
"redirect_document_id": false
7+
}
8+
]
9+
}

articles/spring-cloud/index.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ landingContent:
4646
url: quickstart-setup-application-configuration-service-enterprise.md
4747
- text: Build and deploy applications
4848
url: quickstart-deploy-apps-enterprise.md
49-
- text: Set up Service Registry
50-
url: quickstart-setup-service-registry-enterprise.md
5149
- linkListType: how-to-guide
5250
links:
5351
- text: Use Application Configuration Service

articles/spring-cloud/overview.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ The following quickstarts will help you get started using the Enterprise tier:
126126
* [Provision an Azure Spring Cloud instance using the Enterprise tier](quickstart-provision-service-instance-enterprise.md)
127127
* [Set up Application Configuration Service for Tanzu](quickstart-setup-application-configuration-service-enterprise.md)
128128
* [Build and deploy applications](quickstart-deploy-apps-enterprise.md)
129-
* [Set up Tanzu Service Registry](quickstart-setup-service-registry-enterprise.md)
130129

131130
Most of the Azure Spring Cloud documentation applies to all tiers. Some articles apply only to Enterprise tier or only to Basic/Standard tier, as indicated at the beginning of each article.
132131

articles/spring-cloud/quickstart-deploy-apps-enterprise.md

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,47 @@ To create apps on Azure Spring Cloud, follow these steps:
4141
az spring-cloud app create --name customers-service --instance-count 1 --memory 2Gi
4242
```
4343

44+
## Bind apps to Application Configuration Service for Tanzu and Tanzu Service Registry
45+
46+
### [Portal](#tab/azure-portal)
47+
48+
To bind apps to Application Configuration Service for VMware Tanzu®, follow these steps.
49+
50+
1. In the Azure portal, select **Application Configuration Service**.
51+
1. Select **App binding**, then select **Bind app**.
52+
1. Choose one app in the dropdown and select **Apply** to bind the application to Application Configuration Service for Tanzu.
53+
54+
![Azure portal screenshot of Azure Spring Cloud with Application Configuration Service page and 'App binding' section with 'Bind app' dialog showing.](./media/enterprise/getting-started-enterprise/config-service-app-bind-dropdown.png)
55+
56+
A list under **App name** shows the apps bound with Application Configuration Service for Tanzu, as shown in the following screenshot:
57+
58+
![Azure portal screenshot of Azure Spring Cloud with Application Configuration Service page and 'App binding' section with app list showing.](./media/enterprise/getting-started-enterprise/config-service-app-bind.png)
59+
60+
To bind apps to VMware Tanzu® Service Registry, follow these steps.
61+
62+
1. Select **Service Registry**.
63+
1. Select **App binding**, then select **Bind app**.
64+
1. Choose one app in the dropdown, and then select **Apply** to bind the application to Tanzu Service Registry.
65+
66+
:::image type="content" source="media/enterprise/getting-started-enterprise/service-reg-app-bind-dropdown.png" alt-text="Azure portal screenshot of Azure Spring Cloud with Service Registry page and 'Bind app' dialog showing.":::
67+
68+
A list under **App name** shows the apps bound with Tanzu Service Registry, as shown in the following screenshot:
69+
70+
:::image type="content" source="media/enterprise/getting-started-enterprise/service-reg-app-bind.png" alt-text="Azure portal screenshot of Azure Spring Cloud with Service Registry page and 'App binding' section showing.":::
71+
72+
### [Azure CLI](#tab/azure-cli)
73+
74+
To bind apps to Application Configuration Service for VMware Tanzu® and VMware Tanzu® Service Registry, use the following commands.
75+
76+
```azurecli
77+
az spring-cloud application-configuration-service bind --app api-gateway
78+
az spring-cloud application-configuration-service bind --app customers-service
79+
az spring-cloud service-registry bind --app api-gateway
80+
az spring-cloud service-registry bind --app customers-service
81+
```
82+
83+
---
84+
4485
## Build and deploy applications
4586

4687
The following sections show how to build and deploy applications.
@@ -95,17 +136,16 @@ Access the `api gateway` and `customers service` applications from the browser u
95136

96137
## Clean up resources
97138

98-
1. Open the [Azure portal](https://ms.portal.azure.com/?AppPlatformExtension=entdf#home), then delete the service instance as in the following screenshot.
99-
100-
![Delete an instance image](./media/enterprise/getting-started-enterprise/service-instance-delete-instance.png)
101-
102-
1. Run the following command to remove the preview version of the Azure CLI extension.
139+
If you plan to continue working with subsequent quickstarts and tutorials, you might want to leave these resources in place. When no longer needed, delete the resource group, which deletes the resources in the resource group. To delete the resource group by using Azure CLI, use the following commands:
103140

104-
```azurecli
105-
az extension remove --name spring-cloud
106-
```
141+
```azurecli
142+
echo "Enter the Resource Group name:" &&
143+
read resourceGroupName &&
144+
az group delete --name $resourceGroupName &&
145+
echo "Press [ENTER] to continue ..."
146+
```
107147

108148
## Next steps
109149

110150
> [!div class="nextstepaction"]
111-
> [Quickstart: Set up Tanzu Service Registry](quickstart-setup-service-registry-enterprise.md)
151+
> [Quickstart: Set up a Log Analytics workspace](quickstart-setup-log-analytics.md)

articles/spring-cloud/quickstart-deploy-apps.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,18 @@ Other Spring applications included in this sample can be deployed similarly.
415415

416416
::: zone-end
417417

418-
## Next steps
418+
## Clean up resources
419+
420+
If you plan to continue working with subsequent quickstarts and tutorials, you might want to leave these resources in place. When no longer needed, delete the resource group, which deletes the resources in the resource group. To delete the resource group by using Azure CLI, use the following commands:
421+
422+
```azurecli
423+
echo "Enter the Resource Group name:" &&
424+
read resourceGroupName &&
425+
az group delete --name $resourceGroupName &&
426+
echo "Press [ENTER] to continue ..."
427+
```
419428

420-
In this quickstart, you created Azure resources that will continue to accrue charges if they remain in your subscription. If you don't intend to continue on to the next quickstart, see [Clean up resources](./quickstart-logs-metrics-tracing.md#clean-up-resources). Otherwise, advance to the next quickstart:
429+
## Next steps
421430

422431
> [!div class="nextstepaction"]
423-
> [Set up Log Analytics](./quickstart-setup-log-analytics.md)
432+
> [Quickstart: Set up a Log Analytics workspace](quickstart-setup-log-analytics.md)

articles/spring-cloud/quickstart-deploy-infrastructure-vnet-bicep.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ You can either use the Azure portal to check the deployed resources, or use Azur
154154

155155
If you plan to continue working with subsequent quickstarts and tutorials, you might want to leave these resources in place. When no longer needed, delete the resource group, which deletes the resources in the resource group. To delete the resource group by using Azure CLI, use the following commands:
156156

157-
```azurecli-interactive
157+
```azurecli
158158
echo "Enter the Resource Group name:" &&
159159
read resourceGroupName &&
160160
az group delete --name $resourceGroupName &&

articles/spring-cloud/quickstart-integrate-azure-database-mysql.md

Lines changed: 89 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ Pet Clinic, as deployed in the default configuration [Quickstart: Build and depl
1717

1818
## Variables preparation
1919

20-
We will use the following values. Save them in a text file or environment variables to avoid errors.
21-
The password should be at least 8 characters long and contain at least one English uppercase letter, one English lowercase letter, one number, and one non-alphanumeric character (!, $, #, %, and so on.).
20+
We will use the following values. Save them in a text file or environment variables to avoid errors. The password should be at least 8 characters long and contain at least one English uppercase letter, one English lowercase letter, one number, and one non-alphanumeric character (!, $, #, %, and so on.).
2221

2322
```bash
2423
export RESOURCE_GROUP=<resource-group-name> # customize this
@@ -33,103 +32,109 @@ export MYSQL_DATABASE_NAME=petclinic
3332
## Prepare an Azure Database for MySQL instance
3433

3534
1. If you didn't run the following commands in the previous quickstarts, set the CLI defaults.
36-
```azcli
37-
az configure --defaults group=<resource group name> spring-cloud=<service name>
38-
```
39-
1. Create an Azure Database for MySQL server.
40-
41-
```azcli
42-
az mysql server create --resource-group ${RESOURCE_GROUP} \
43-
--name ${MYSQL_SERVER_NAME} \
44-
--admin-user ${MYSQL_SERVER_ADMIN_NAME} \
45-
--admin-password ${MYSQL_SERVER_ADMIN_PASSWORD} \
46-
--sku-name GP_Gen5_2 \
47-
--ssl-enforcement Disabled \
48-
--version 5.7
49-
```
35+
36+
```azcli
37+
az configure --defaults group=<resource group name> spring-cloud=<service name>
38+
```
39+
40+
1. Create an Azure Database for MySQL server.
41+
42+
```azcli
43+
az mysql server create --resource-group ${RESOURCE_GROUP} \
44+
--name ${MYSQL_SERVER_NAME} \
45+
--admin-user ${MYSQL_SERVER_ADMIN_NAME} \
46+
--admin-password ${MYSQL_SERVER_ADMIN_PASSWORD} \
47+
--sku-name GP_Gen5_2 \
48+
--ssl-enforcement Disabled \
49+
--version 5.7
50+
```
5051

5152
1. Allow access from Azure resources.
5253

53-
```azcli
54-
az mysql server firewall-rule create --name allAzureIPs \
55-
--server ${MYSQL_SERVER_NAME} \
56-
--resource-group ${RESOURCE_GROUP} \
57-
--start-ip-address 0.0.0.0 --end-ip-address 0.0.0.0
58-
```
54+
```azcli
55+
az mysql server firewall-rule create --name allAzureIPs \
56+
--server ${MYSQL_SERVER_NAME} \
57+
--resource-group ${RESOURCE_GROUP} \
58+
--start-ip-address 0.0.0.0 --end-ip-address 0.0.0.0
59+
```
5960

6061
1. Allow access from your dev machine for testing.
6162

62-
```azcli
63-
az mysql server firewall-rule create --name devMachine \
64-
--server ${MYSQL_SERVER_NAME} \
65-
--resource-group ${RESOURCE_GROUP} \
66-
--start-ip-address <ip-address-of-your-dev-machine> \
67-
--end-ip-address <ip-address-of-your-dev-machine>
68-
```
63+
```azcli
64+
az mysql server firewall-rule create --name devMachine \
65+
--server ${MYSQL_SERVER_NAME} \
66+
--resource-group ${RESOURCE_GROUP} \
67+
--start-ip-address <ip-address-of-your-dev-machine> \
68+
--end-ip-address <ip-address-of-your-dev-machine>
69+
```
6970

7071
1. Increase connection timeout.
7172

72-
```azcli
73-
az mysql server configuration set --name wait_timeout \
74-
--resource-group ${RESOURCE_GROUP} \
75-
--server ${MYSQL_SERVER_NAME} --value 2147483
76-
```
73+
```azcli
74+
az mysql server configuration set --name wait_timeout \
75+
--resource-group ${RESOURCE_GROUP} \
76+
--server ${MYSQL_SERVER_NAME} --value 2147483
77+
```
7778

7879
1. Create database in the MySQL server and set corresponding settings.
7980

80-
```sql
81-
// SUBSTITUTE values
82-
mysql -u ${MYSQL_SERVER_ADMIN_LOGIN_NAME} \
83-
-h ${MYSQL_SERVER_FULL_NAME} -P 3306 -p
81+
```sql
82+
// SUBSTITUTE values
83+
mysql -u ${MYSQL_SERVER_ADMIN_LOGIN_NAME} \
84+
-h ${MYSQL_SERVER_FULL_NAME} -P 3306 -p
8485

85-
Enter password:
86-
Welcome to the MySQL monitor. Commands end with ; or \g.
87-
Your MySQL connection id is 64379
88-
Server version: 5.6.39.0 MySQL Community Server (GPL)
86+
Enter password:
87+
Welcome to the MySQL monitor. Commands end with ; or \g.
88+
Your MySQL connection id is 64379
89+
Server version: 5.6.39.0 MySQL Community Server (GPL)
8990

90-
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
91+
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
9192

92-
Oracle is a registered trademark of Oracle Corporation and/or its
93-
affiliates. Other names may be trademarks of their respective
94-
owners.
93+
Oracle is a registered trademark of Oracle Corporation and/or its
94+
affiliates. Other names may be trademarks of their respective
95+
owners.
9596

96-
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
97+
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
9798

98-
mysql> CREATE DATABASE petclinic;
99-
Query OK, 1 row affected (0.10 sec)
99+
mysql> CREATE DATABASE petclinic;
100+
Query OK, 1 row affected (0.10 sec)
100101

101-
mysql> CREATE USER 'root' IDENTIFIED BY 'petclinic';
102-
Query OK, 0 rows affected (0.11 sec)
102+
mysql> CREATE USER 'root' IDENTIFIED BY 'petclinic';
103+
Query OK, 0 rows affected (0.11 sec)
103104

104-
mysql> GRANT ALL PRIVILEGES ON petclinic.* TO 'root';
105-
Query OK, 0 rows affected (1.29 sec)
105+
mysql> GRANT ALL PRIVILEGES ON petclinic.* TO 'root';
106+
Query OK, 0 rows affected (1.29 sec)
106107

107-
mysql> CALL mysql.az_load_timezone();
108-
Query OK, 3179 rows affected, 1 warning (6.34 sec)
108+
mysql> CALL mysql.az_load_timezone();
109+
Query OK, 3179 rows affected, 1 warning (6.34 sec)
109110

110-
mysql> SELECT name FROM mysql.time_zone_name;
111-
...
111+
mysql> SELECT name FROM mysql.time_zone_name;
112+
...
112113

113-
mysql> quit
114-
Bye
115-
```
114+
mysql> quit
115+
Bye
116+
```
116117

117118
1. Set timezone.
118119

119-
```azcli
120-
az mysql server configuration set --name time_zone \
121-
--resource-group ${RESOURCE_GROUP} \
122-
--server ${MYSQL_SERVER_NAME} --value "US/Pacific"
123-
```
120+
```azcli
121+
az mysql server configuration set \
122+
--resource-group ${RESOURCE_GROUP} \
123+
--name time_zone \
124+
--server ${MYSQL_SERVER_NAME} \
125+
--value "US/Pacific"
126+
```
124127

125128
## Update Apps to use MySQL database
126129

127130
To enable MySQL as database for the sample app, simply update the *customer-service* app with active profile MySQL and database credentials as environment variables.
128131

129132
```azcli
130-
az spring-cloud app update --name customers-service \
133+
az spring-cloud app update \
134+
--name customers-service \
131135
--jvm-options="-Xms2048m -Xmx2048m -Dspring.profiles.active=mysql" \
132-
--env MYSQL_SERVER_FULL_NAME=${MYSQL_SERVER_FULL_NAME} \
136+
--env \
137+
MYSQL_SERVER_FULL_NAME=${MYSQL_SERVER_FULL_NAME} \
133138
MYSQL_DATABASE_NAME=${MYSQL_DATABASE_NAME} \
134139
MYSQL_SERVER_ADMIN_LOGIN_NAME=${MYSQL_SERVER_ADMIN_LOGIN_NAME} \
135140
MYSQL_SERVER_ADMIN_PASSWORD=${MYSQL_SERVER_ADMIN_PASSWORD}
@@ -144,24 +149,38 @@ az spring-cloud app update --name admin-server \
144149
--jvm-options="-Xms2048m -Xmx2048m -Dspring.profiles.active=mysql"
145150
az spring-cloud app update --name customers-service \
146151
--jvm-options="-Xms2048m -Xmx2048m -Dspring.profiles.active=mysql" \
147-
--env MYSQL_SERVER_FULL_NAME=${MYSQL_SERVER_FULL_NAME} \
152+
--env \
153+
MYSQL_SERVER_FULL_NAME=${MYSQL_SERVER_FULL_NAME} \
148154
MYSQL_DATABASE_NAME=${MYSQL_DATABASE_NAME} \
149155
MYSQL_SERVER_ADMIN_LOGIN_NAME=${MYSQL_SERVER_ADMIN_LOGIN_NAME} \
150156
MYSQL_SERVER_ADMIN_PASSWORD=${MYSQL_SERVER_ADMIN_PASSWORD}
151157
az spring-cloud app update --name vets-service \
152158
--jvm-options="-Xms2048m -Xmx2048m -Dspring.profiles.active=mysql" \
153-
--env MYSQL_SERVER_FULL_NAME=${MYSQL_SERVER_FULL_NAME} \
159+
--env \
160+
MYSQL_SERVER_FULL_NAME=${MYSQL_SERVER_FULL_NAME} \
154161
MYSQL_DATABASE_NAME=${MYSQL_DATABASE_NAME} \
155162
MYSQL_SERVER_ADMIN_LOGIN_NAME=${MYSQL_SERVER_ADMIN_LOGIN_NAME} \
156163
MYSQL_SERVER_ADMIN_PASSWORD=${MYSQL_SERVER_ADMIN_PASSWORD}
157164
az spring-cloud app update --name visits-service \
158165
--jvm-options="-Xms2048m -Xmx2048m -Dspring.profiles.active=mysql" \
159-
--env MYSQL_SERVER_FULL_NAME=${MYSQL_SERVER_FULL_NAME} \
166+
--env \
167+
MYSQL_SERVER_FULL_NAME=${MYSQL_SERVER_FULL_NAME} \
160168
MYSQL_DATABASE_NAME=${MYSQL_DATABASE_NAME} \
161169
MYSQL_SERVER_ADMIN_LOGIN_NAME=${MYSQL_SERVER_ADMIN_LOGIN_NAME} \
162170
MYSQL_SERVER_ADMIN_PASSWORD=${MYSQL_SERVER_ADMIN_PASSWORD}
163171
```
164172

173+
## Clean up resources
174+
175+
If you plan to continue working with subsequent quickstarts and tutorials, you might want to leave these resources in place. When no longer needed, delete the resource group, which deletes the resources in the resource group. To delete the resource group by using Azure CLI, use the following commands:
176+
177+
```azurecli
178+
echo "Enter the Resource Group name:" &&
179+
read resourceGroupName &&
180+
az group delete --name $resourceGroupName &&
181+
echo "Press [ENTER] to continue ..."
182+
```
183+
165184
## Next steps
166185

167186
* [Bind an Azure Database for MySQL instance to your application in Azure Spring Cloud](how-to-bind-mysql.md)

articles/spring-cloud/quickstart-logs-metrics-tracing.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,13 @@ Select an exception to see the end-to-end transaction and stacktrace in context:
232232

233233
## Clean up resources
234234

235-
In these quickstarts, you created Azure resources that will continue to accrue charges if they remain in your subscription. If you don't expect to need these resources in the future, delete the resource group by using the portal or by running the following command in the Cloud Shell:
235+
If you plan to continue working with subsequent quickstarts and tutorials, you might want to leave these resources in place. When no longer needed, delete the resource group, which deletes the resources in the resource group. To delete the resource group by using Azure CLI, use the following commands:
236236

237237
```azurecli
238-
az group delete --name <your resource group name; for example: helloworld-1558400876966-rg> --yes
238+
echo "Enter the Resource Group name:" &&
239+
read resourceGroupName &&
240+
az group delete --name $resourceGroupName &&
241+
echo "Press [ENTER] to continue ..."
239242
```
240243

241244
In an earlier quickstart, you also set the default resource group name. If you don't intend to continue to the next quickstart, clear out that default by running the following CLI command:
@@ -249,8 +252,5 @@ az config set defaults.group=
249252
To explore more monitoring capabilities of Azure Spring Cloud, see:
250253

251254
> [!div class="nextstepaction"]
252-
> [Diagnostic services](diagnostic-services.md)
253-
>
254-
> [Distributed tracing](./how-to-distributed-tracing.md)
255-
>
256-
> [Stream logs in real time](./how-to-log-streaming.md)
255+
> [Analyze logs and metrics with diagnostics settings](diagnostic-services.md)>
256+
> [Stream Azure Spring Cloud app logs in real-time](./how-to-log-streaming.md)

0 commit comments

Comments
 (0)