Skip to content

Commit d32611d

Browse files
author
Cephas Lin
committed
reword
1 parent 01b1bd4 commit d32611d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/app-service/tutorial-dotnetcore-sqldb-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,13 +687,13 @@ See [Set up GitHub Actions deployment from the Deployment Center](deploy-github-
687687
688688
### How do I change the SQL Database connection to use a managed identity instead?
689689
690-
The default connection string to the SQL database is managed by Service Connector, with the name *defaultConnector*, and it uses SQL authentication. To replace it with a connection that uses a managed identity, run the following commands in the [cloud shell](https://shell.azure.com):
690+
The default connection string to the SQL database is managed by Service Connector, with the name *defaultConnector*, and it uses SQL authentication. To replace it with a connection that uses a managed identity, run the following commands in the [cloud shell](https://shell.azure.com) after replacing the placeholders:
691691
692692
```azurecli-interactive
693693
az extension add --name serviceconnector-passwordless --upgrade
694694
az sql server update --enable-public-network true
695-
az webapp connection delete sql --connection defaultConnector --resource-group <resource-group> --name <app-name> # replace <app-name>
696-
az webapp connection create sql --connection defaultConnector --resource-group <resource-group> --name <app-name> --target-resource-group msdocs-core-sql-tutorial --server <sql-database-server-name> --database <database-name> --client-type dotnet --system-identity --config-connstr true # replace <app-name>, <sql-database-server-name>, and <database-name>
695+
az webapp connection delete sql --connection defaultConnector --resource-group <group-name> --name <app-name>
696+
az webapp connection create sql --connection defaultConnector --resource-group <group-name> --name <app-name> --target-resource-group <group-name> --server <database-server-name> --database <database-name> --client-type dotnet --system-identity --config-connstr true
697697
az sql server update --enable-public-network false
698698
```
699699

0 commit comments

Comments
 (0)