Skip to content

Commit ead121a

Browse files
committed
Apply feedback
1 parent 538ccc1 commit ead121a

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

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

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: "Quickstart - Integrate with Azure Database for MySQL"
33
description: Explains how to provision and prepare an Azure Database for MySQL instance, and then configure Pet Clinic on Azure Spring Apps to use it as a persistent database with only one command.
4-
author: karlerickson
5-
ms.author: karler
4+
author: maud-lv
5+
ms.author: malev
66
ms.service: spring-apps
77
ms.topic: quickstart
8-
ms.date: 08/26/2022
9-
ms.custom: devx-track-java, devx-track-azurecli, mode-other, event-tier1-build-2022
8+
ms.date: 08/28/2022
9+
ms.custom: devx-track-java, devx-track-azurecli, mode-other, event-tier1-build-2022, service-connector
1010
---
1111

1212
# Quickstart: Integrate Azure Spring Apps with Azure Database for MySQL
@@ -26,8 +26,12 @@ An Azure account with an active subscription. [Create an account for free](https
2626

2727
1. Create an Azure Database for MySQL flexible server using the [az mysql flexible-server create](/cli/azure/mysql/flexible-server#az-mysql-flexible-server-create) command. Replace the placeholders `<database-name>`, `<resource-group-name>`, `<MySQL-flexible-server-name>`, `<admin-username>`, and `<admin-password>` with a name for your new database, the name of your resource group, a name for your new server, and an admin username and password.
2828

29-
```azcli
30-
az mysql flexible-server create --database-name <database-name> --resource-group <resource-group-name> --name <MySQL-flexible-server-name> --admin-user <admin-username> --admin-password <admin-password>
29+
```azurecli-interactive
30+
az mysql flexible-server create --database-name <database-name> \
31+
--resource-group <resource-group-name> \
32+
--name <MySQL-flexible-server-name> \
33+
--admin-user <admin-username> \
34+
--admin-password <admin-password>
3135
```
3236

3337
> [!NOTE]
@@ -42,6 +46,9 @@ An Azure account with an active subscription. [Create an account for free](https
4246

4347
Use [Service Connector](../service-connector/overview.md) to connect the app hosted in Azure Spring Apps to your MySQL database.
4448

49+
> [!NOTE]
50+
> The service binding feature in Azure Spring Apps is being deprecated in favor of Service Connector.
51+
4552
### [Azure CLI](#tab/azure-cli)
4653

4754
1. If you're using Service Connector for the first time, start by running the command [az provider register](/cli/azure/provider#az-provider-register) to register the Service Connector resource provider.
@@ -50,7 +57,7 @@ Use [Service Connector](../service-connector/overview.md) to connect the app hos
5057
az provider register -n Microsoft.ServiceLinker
5158
```
5259
53-
1. Run the `az spring connection create` command to create a service connection between Azure Spring Apps and the Azure MySQL database. Replace the placeholders below by your own information.
60+
1. Run the `az spring connection create` command to create a service connection between Azure Spring Apps and the Azure MySQL database. Replace the placeholders below with your own information.
5461
5562
| Setting | Description |
5663
|---------------------------|----------------------------------------------------------------------------------------------|
@@ -64,7 +71,14 @@ Use [Service Connector](../service-connector/overview.md) to connect the app hos
6471
| `--secret` | The MySQL server password. |
6572
6673
```azurecli-interactive
67-
az spring connection create mysql-flexible --resource-group <Azure-Spring-Apps-resource-group-name> --service <Azure-Spring-Apps-resource-name> --app <app-name> --target-resource-group <mySQL-server-resource-group> --server <server-name> --database <database-name> --secret name=<username> secret=<secret>
74+
az spring connection create mysql-flexible \
75+
--resource-group <Azure-Spring-Apps-resource-group-name> \
76+
--service <Azure-Spring-Apps-resource-name> \
77+
--app <app-name> \
78+
--target-resource-group <mySQL-server-resource-group> \
79+
--server <server-name> \
80+
--database <database-name> \
81+
--secret name=<username> secret=<secret>
6882
```
6983
7084
> [!TIP]
@@ -103,10 +117,13 @@ Use [Service Connector](../service-connector/overview.md) to connect the app hos
103117
104118
### [Azure CLI](#tab/azure-cli)
105119
106-
Run the `az spring connection validate` command to show the status of the connection between Azure Spring Apps and the Azure MySQL database. Replace the placeholders below by your own information.
120+
Run the `az spring connection validate` command to show the status of the connection between Azure Spring Apps and the Azure MySQL database. Replace the placeholders below with your own information.
107121
108122
```azurecli-interactive
109-
az spring connection validate --connection <connection-name> --resource-group <Azure-Spring-Apps-resource-group-name> --service <Azure-Spring-Apps-resource-name> --app <app-name>
123+
az spring connection validate --connection <connection-name> \
124+
--resource-group <Azure-Spring-Apps-resource-group-name> \
125+
--service <Azure-Spring-Apps-resource-name> \
126+
--app <app-name>
110127
```
111128

112129
The following output is displayed:
@@ -120,7 +137,7 @@ The configured values (except username/password) is validated success
120137
```
121138

122139
> [!TIP]
123-
> To get more details about the connection between your services, remove `--output table`from the above command.
140+
> To get more details about the connection between your services, remove `--output table` from the above command.
124141
125142
### [Portal](#tab/azure-portal)
126143

0 commit comments

Comments
 (0)