Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit c5b6cb4

Browse files
authored
Indent fixes
1 parent e83311b commit c5b6cb4

1 file changed

Lines changed: 45 additions & 44 deletions

File tree

Instructions/Labs/AZ400_M11_Configuring_Pipelines_as_Code_with_YAML.md

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -81,73 +81,74 @@ In this task, you will create an Azure web app and an Azure SQL database by usin
8181
8282
1. From the **Bash** prompt, in the **Cloud Shell** pane, run the following command to create a resource group (replace the `<region>` placeholder with the name of the Azure region closest to you such as 'eastus').
8383

84-
```bash
85-
RESOURCEGROUPNAME='az400m11l01-RG'
86-
LOCATION='<region>'
87-
az group create -n $RESOURCEGROUPNAME -l $LOCATION
88-
```
84+
```bash
85+
RESOURCEGROUPNAME='az400m11l01-RG'
86+
LOCATION='<region>'
87+
az group create -n $RESOURCEGROUPNAME -l $LOCATION
88+
```
8989

9090
1. To create a Windows App service plan by running the following command:
9191

92-
```bash
93-
SERVICEPLANNAME='az400l11a-sp1'
94-
az appservice plan create -g $RESOURCEGROUPNAME -n $SERVICEPLANNAME --sku S1
95-
```
96-
> **Note**: If the `az appservice plan create` command fails with an error message starting with `ModuleNotFoundError: No module named 'vsts_cd_manager'`, then run the following commands and then re-run the failed command.
92+
```bash
93+
SERVICEPLANNAME='az400l11a-sp1'
94+
az appservice plan create -g $RESOURCEGROUPNAME -n $SERVICEPLANNAME --sku S1
95+
```
96+
97+
> **Note**: If the `az appservice plan create` command fails with an error message starting with `ModuleNotFoundError: No module named 'vsts_cd_manager'`, then run the following commands and then re-run the failed command.
9798

98-
```bash
99-
az extension remove -n appservice-kube
100-
az extension add --yes --source "https://aka.ms/appsvc/appservice_kube-latest-py2.py3-none-any.whl"
101-
```
99+
```bash
100+
az extension remove -n appservice-kube
101+
az extension add --yes --source "https://aka.ms/appsvc/appservice_kube-latest-py2.py3-none-any.whl"
102+
```
102103

103104
1. Create a web app with a unique name.
104105

105-
```bash
106-
WEBAPPNAME=partsunlimited$RANDOM$RANDOM
107-
az webapp create -g $RESOURCEGROUPNAME -p $SERVICEPLANNAME -n $WEBAPPNAME
108-
```
106+
```bash
107+
WEBAPPNAME=partsunlimited$RANDOM$RANDOM
108+
az webapp create -g $RESOURCEGROUPNAME -p $SERVICEPLANNAME -n $WEBAPPNAME
109+
```
109110

110-
> **Note**: Record the name of the web app. You will need it later in this lab.
111+
> **Note**: Record the name of the web app. You will need it later in this lab.
111112

112113
1. Next, create an Azure SQL Server.
113114

114-
```bash
115-
USERNAME="Student"
116-
SQLSERVERPASSWORD="Pa55w.rd1234"
117-
SERVERNAME="partsunlimitedserver$RANDOM"
115+
```bash
116+
USERNAME="Student"
117+
SQLSERVERPASSWORD="Pa55w.rd1234"
118+
SERVERNAME="partsunlimitedserver$RANDOM"
118119
119-
az sql server create --name $SERVERNAME --resource-group $RESOURCEGROUPNAME \
120-
--location $LOCATION --admin-user $USERNAME --admin-password $SQLSERVERPASSWORD
121-
```
120+
az sql server create --name $SERVERNAME --resource-group $RESOURCEGROUPNAME \
121+
--location $LOCATION --admin-user $USERNAME --admin-password $SQLSERVERPASSWORD
122+
```
122123

123124
1. The web app needs to be able to access the SQL server, so we need to allow access to Azure resources in the SQL Server firewall rules.
124125

125-
```bash
126-
STARTIP="0.0.0.0"
127-
ENDIP="0.0.0.0"
128-
az sql server firewall-rule create --server $SERVERNAME --resource-group $RESOURCEGROUPNAME \
129-
--name AllowAzureResources --start-ip-address $STARTIP --end-ip-address $ENDIP
130-
```
126+
```bash
127+
STARTIP="0.0.0.0"
128+
ENDIP="0.0.0.0"
129+
az sql server firewall-rule create --server $SERVERNAME --resource-group $RESOURCEGROUPNAME \
130+
--name AllowAzureResources --start-ip-address $STARTIP --end-ip-address $ENDIP
131+
```
131132

132133
1. Now create a database within that server.
133134

134-
```bash
135-
az sql db create --server $SERVERNAME --resource-group $RESOURCEGROUPNAME --name PartsUnlimited \
136-
--service-objective S0
137-
```
135+
```bash
136+
az sql db create --server $SERVERNAME --resource-group $RESOURCEGROUPNAME --name PartsUnlimited \
137+
--service-objective S0
138+
```
138139

139140
1. The web app you created needs the database connection string in its configuration, so run the following commands to prepare and add it to the app settings of the web app.
140141

141-
```bash
142-
CONNSTRING=$(az sql db show-connection-string --name PartsUnlimited --server $SERVERNAME \
143-
--client ado.net --output tsv)
142+
```bash
143+
CONNSTRING=$(az sql db show-connection-string --name PartsUnlimited --server $SERVERNAME \
144+
--client ado.net --output tsv)
144145
145-
CONNSTRING=${CONNSTRING//<username>/$USERNAME}
146-
CONNSTRING=${CONNSTRING//<password>/$SQLSERVERPASSWORD}
146+
CONNSTRING=${CONNSTRING//<username>/$USERNAME}
147+
CONNSTRING=${CONNSTRING//<password>/$SQLSERVERPASSWORD}
147148
148-
az webapp config connection-string set --name $WEBAPPNAME --resource-group $RESOURCEGROUPNAME \
149-
-t SQLAzure --settings "DefaultConnectionString=$CONNSTRING"
150-
```
149+
az webapp config connection-string set --name $WEBAPPNAME --resource-group $RESOURCEGROUPNAME \
150+
-t SQLAzure --settings "DefaultConnectionString=$CONNSTRING"
151+
```
151152

152153
### Exercise 1: Configure CI/CD Pipelines as Code with YAML in Azure DevOps
153154

0 commit comments

Comments
 (0)