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/quickstart-integrate-azure-database-mysql.md
+28-11Lines changed: 28 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
2
title: "Quickstart - Integrate with Azure Database for MySQL"
3
3
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.
# 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
26
26
27
27
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.
28
28
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>
31
35
```
32
36
33
37
> [!NOTE]
@@ -42,6 +46,9 @@ An Azure account with an active subscription. [Create an account for free](https
42
46
43
47
Use [Service Connector](../service-connector/overview.md) to connect the app hosted in Azure Spring Apps to your MySQL database.
44
48
49
+
> [!NOTE]
50
+
> The service binding feature in Azure Spring Apps is being deprecated in favor of Service Connector.
51
+
45
52
### [Azure CLI](#tab/azure-cli)
46
53
47
54
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
50
57
az provider register -n Microsoft.ServiceLinker
51
58
```
52
59
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.
@@ -103,10 +117,13 @@ Use [Service Connector](../service-connector/overview.md) to connect the app hos
103
117
104
118
### [Azure CLI](#tab/azure-cli)
105
119
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.
107
121
108
122
```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> \
0 commit comments