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
{{ message }}
This repository was archived by the owner on Jan 21, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: Instructions/Labs/AZ400_M11_Configuring_Pipelines_as_Code_with_YAML.md
+45-44Lines changed: 45 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,73 +81,74 @@ In this task, you will create an Azure web app and an Azure SQL database by usin
81
81
82
82
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').
83
83
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
+
```
89
89
90
90
1. To create a Windows App service plan by running the following command:
91
91
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.
97
98
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
+
```
102
103
103
104
1. Create a web app with a unique name.
104
105
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
+
```
109
110
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.
111
112
112
113
1. Next, create an Azure SQL Server.
113
114
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"
118
119
119
-
az sql server create --name $SERVERNAME --resource-group $RESOURCEGROUPNAME \
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
+
```
138
139
139
140
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.
140
141
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 \
0 commit comments