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
Configure your app deployed to Azure Spring to connect to an SQL Database with a system-assigned managed identity using the `az spring connection create` command, as shown in the following example.
65
65
66
66
> [!NOTE]
67
-
> This command requires you to run [Azure CLI](/cli/azure/install-azure-cli) version 2.41.0 or higher.
68
-
69
-
```azurecli-interactive
70
-
az spring connection create sql \
71
-
--resource-group $SPRING_APP_RESOURCE_GROUP \
72
-
--service $Spring_APP_SERVICE_NAME \
73
-
--app $APP_NAME --deployment $DEPLOYMENT_NAME \
74
-
--target-resource-group $SQL_RESOURCE_GROUP \
75
-
--server $SQL_SERVER_NAME \
76
-
--database $DATABASE_NAME \
77
-
--system-identity
78
-
```
67
+
> These commands require [Azure CLI](/cli/azure/install-azure-cli) version 2.45.0 or higher.
68
+
69
+
1. Install the Service Connector passwordless extension for the Azure CLI.
70
+
71
+
```azurecli
72
+
az extension add --name serviceconnector-passwordless --upgrade
73
+
```
74
+
75
+
1. Run the `az spring connection create` command, as shown in the following example.
Copy file name to clipboardExpand all lines: articles/spring-apps/how-to-bind-mysql.md
+22-14Lines changed: 22 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ With Azure Spring Apps, you can bind select Azure services to your applications
24
24
25
25
* An application deployed to Azure Spring Apps. For more information, see [Quickstart: Deploy your first application to Azure Spring Apps](./quickstart.md).
26
26
* An Azure Database for MySQL Flexible Server instance.
27
-
*[Azure CLI](/cli/azure/install-azure-cli) version 2.41.0 or higher.
27
+
*[Azure CLI](/cli/azure/install-azure-cli) version 2.45.0 or higher.
28
28
29
29
## Prepare your Java project
30
30
@@ -49,19 +49,27 @@ With Azure Spring Apps, you can bind select Azure services to your applications
49
49
50
50
### [Service Connector](#tab/Service-Connector)
51
51
52
-
To configure your Spring app to connect to an Azure Database for MySQL Flexible Server with a system-assigned managed identity, use the `az spring connection create` command, as shown in the following example.
0 commit comments