Skip to content

Commit 8a7d19c

Browse files
authored
Fix numbering
1 parent 4a82328 commit 8a7d19c

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

articles/service-connector/tutorial-django-webapp-postgres-cli.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -204,17 +204,18 @@ With the code now deployed to App Service, the next step is to connect the app t
204204

205205
The Service Connector commands configure Azure Storage and Azure Database for PostgreSQL resources to use managed identity and Azure role-based access control. The commands create app settings in the App Service that connect your web app to these resources. The output from the commands lists the service connector actions taken to enable passwordless capability.
206206

207-
1. Add a PostgreSQL service connector with the [az webapp connection create postgres-flexible](/cli/azure/webapp/connection/create#az-webapp-connection-create-postgres-flexible) command. The system-assigned managed identity is used to authenticate the web app to the target resource, PostgreSQL in this case.
208-
```azurecli
209-
az webapp connection create postgres-flexible \
210-
--resource-group $RESOURCE_GROUP_NAME \
211-
--name $APP_SERVICE_NAME \
212-
--target-resource-group $RESOURCE_GROUP_NAME \
213-
--server $DB_SERVER_NAME \
214-
--database restaurant \
215-
--client-type python \
216-
--system-identity
217-
```
207+
Add a PostgreSQL service connector with the [az webapp connection create postgres-flexible](/cli/azure/webapp/connection/create#az-webapp-connection-create-postgres-flexible) command. The system-assigned managed identity is used to authenticate the web app to the target resource, PostgreSQL in this case.
208+
209+
```azurecli
210+
az webapp connection create postgres-flexible \
211+
--resource-group $RESOURCE_GROUP_NAME \
212+
--name $APP_SERVICE_NAME \
213+
--target-resource-group $RESOURCE_GROUP_NAME \
214+
--server $DB_SERVER_NAME \
215+
--database restaurant \
216+
--client-type python \
217+
--system-identity
218+
```
218219

219220
> [!NOTE]
220221
> If you see the error message "The subscription is not registered to use Microsoft.ServiceLinker", please run `az provider register -n Microsoft.ServiceLinker` to register the Service Connector resource provider and run the connection command again.

0 commit comments

Comments
 (0)