Skip to content

Commit 5ff35cc

Browse files
authored
Merge pull request #189620 from alexwolfmsft/alexw-cli-line-breaks
added line breaks to cli
2 parents 1d806a9 + 7359321 commit 5ff35cc

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

articles/app-service/includes/tutorial-dotnetcore-sqldb-app/deploy-local-git.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ You can deploy your application code from a local Git repository to Azure by con
2020
Next, configure the deployment source for your web app to be local Git using the `az webapp deployment source` command.
2121

2222
```azurecli
23-
az webapp deployment source config-local-git
24-
--name <your-app-name>
23+
az webapp deployment source config-local-git \
24+
--name <your-app-name> \
2525
--resource-group msdocs-core-sql
2626
```
2727

2828
Retrieve the deployment credentials for your application. These will be needed for Git to authenticate to Azure when you push code to Azure in a later step.
2929

3030
```azurecli
31-
az webapp deployment list-publishing-credentials
32-
--name <your-app-name>
33-
--resource-group msdocs-core-sql
31+
az webapp deployment list-publishing-credentials \
32+
--name <your-app-name> \
33+
--resource-group msdocs-core-sql \
3434
--query "{Username:publishingUserName, Password:publishingPassword}"
3535
```
3636

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

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ Next, create an App Service plan using the [az appservice plan create](/cli/azur
6060

6161
```azurecli-interactive
6262
63-
# Change 123 to any three characters to form a unique name across Azure
64-
az appservice plan create
65-
--name msdocs-core-sql-plan-123
66-
--resource-group msdocs-core-sql
63+
# Change 123 to any three characters to form a unique name
64+
az appservice plan create \
65+
--name msdocs-core-sql-plan-123 \
66+
--resource-group msdocs-core-sql \
6767
--sku F1
6868
```
6969

@@ -74,10 +74,10 @@ Finally, create the App Service web app using the [az webapp create](/cli/azure/
7474

7575
```azurecli-interactive
7676
77-
az webapp create
78-
--name <your-app-service-name>
79-
--runtime "DOTNET|6.0"
80-
--plan <your-app-service-plan-name>
77+
az webapp create \
78+
--name <your-app-service-name> \
79+
--runtime "DOTNET|6.0" \
80+
--plan <your-app-service-plan-name> \
8181
--resource-group msdocs-core-sql
8282
```
8383

@@ -108,31 +108,31 @@ To create an Azure SQL database, we first must create a SQL Server to host it. A
108108
Replace the *server-name* placeholder with a unique SQL Database name. This name is used as the part of the globally unique SQL Database endpoint. Also, replace *db-username* and *db-username* with a username and password of your choice.
109109

110110
```azurecli-interactive
111-
az sql server create
112-
--location eastus
113-
--resource-group msdocs-core-sql
114-
--name <server-name>
115-
--admin-user <db-username>
111+
az sql server create \
112+
--location eastus \
113+
--resource-group msdocs-core-sql \
114+
--name <server-name> \
115+
--admin-user <db-username> \
116116
--admin-password <db-password>
117117
```
118118

119119
Provisioning a SQL Server may take a few minutes. Once the resource is available, we can create a database with the [az sql db create](/cli/azure/sql/db#az_sql_db_create) command.
120120

121121
```azurecli-interactive
122-
az sql db create
123-
--resource-group msdocs-core-sql
124-
--server <server-name>
122+
az sql db create \
123+
--resource-group msdocs-core-sql \
124+
--server <server-name> \
125125
--name coreDb
126126
```
127127

128128
We also need to add the following firewall rule to our database server to allow other Azure resources to access it.
129129

130130
```azurecli-interactive
131-
az sql server firewall-rule create
132-
--resource-group msdocs-core-sql
133-
--server <server-name>
134-
--name AzureAccess
135-
--start-ip-address 0.0.0.0
131+
az sql server firewall-rule create \
132+
--resource-group msdocs-core-sql \
133+
--server <server-name> \
134+
--name AzureAccess \
135+
--start-ip-address 0.0.0.0 \
136136
--end-ip-address 0.0.0.0
137137
```
138138

@@ -187,9 +187,9 @@ Azure CLI commands can be run in the [Azure Cloud Shell](https://shell.azure.com
187187
We can retrieve the Connection String for our database using the [az sql db show-connection-string](/cli/azure/sql/db#az_sql_db_show_connection_string) command. This command allows us to add the Connection String to our App Service configuration settings. Copy this Connection String value for later use.
188188

189189
```azurecli-interactive
190-
az sql db show-connection-string
191-
--client ado.net
192-
--name coreDb
190+
az sql db show-connection-string \
191+
--client ado.net \
192+
--name coreDb \
193193
--server <your-server-name>
194194
```
195195

@@ -198,10 +198,10 @@ Next, let's assign the Connection String to our App Service using the command be
198198
Make sure to replace the username and password in the connection string with your own before running the command.
199199

200200
```azurecli-interactive
201-
az webapp config connection-string set
202-
-g msdocs-core-sql
203-
-n <your-app-name>
204-
-t SQLServer
201+
az webapp config connection-string set \
202+
-g msdocs-core-sql \
203+
-n <your-app-name> \
204+
-t SQLServer \
205205
--settings MyDbConnection=<your-connection-string>
206206
207207
```
@@ -247,8 +247,8 @@ Next we need to update the appsettings.json file in our local app code with the
247247
Finally, run the commands below to install the necessary CLI tools for Entity Framework Core, create an initial database migration file, and apply those changes to update the database.
248248

249249
```dotnetcli
250-
dotnet tool install -g dotnet-ef
251-
dotnet ef migrations add InitialCreate
250+
dotnet tool install -g dotnet-ef \
251+
dotnet ef migrations add InitialCreate \
252252
dotnet ef database update
253253
```
254254

0 commit comments

Comments
 (0)