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_M04_Controlling_Deployments_using_Release_Gates.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,19 +161,19 @@ In this task, you will create two Azure web apps representing the **Canary** and
161
161
162
162
>**Note**: You will create monitor alerts here, which you will use in later part of this lab.
163
163
164
-
1. On the Application Insights resource blade, in the **Monitoring** section, click **Alerts** and then click **+ New alert rule**.
164
+
1. On the Application Insights resource blade, in the **Monitoring** section, click **Alerts** and then click **Create > Alert rule**.
165
165
1. On the **Create alert rule** blade, in the **Condition** section, click the **Add condition** link.
166
-
1. On the **Configure signal logic** blade, in the **Search by signal name** textbox, type**Failed Requests** and selectit.
166
+
1. On the **Select a signal** blade, in the **Search by signal name** textbox, type**Failed Requests** and selectit.
167
167
1. On the **Configure signal logic** blade, in the **Alert logic** section, leave the **Threshold**set to **Static**, in the **Threshold value** textbox, type**0**, and click on **Done**.
168
168
169
169
>**Note**: The rule will generate an alert whenever the number of failed requests is greater than 0 within the last 5 minutes.
170
170
171
-
1. Back on the **Create alert rule** pane, in the **Alert rule details** specify the following settings and click **Create alert rule** (leave others with their default values):
171
+
1. Back on the **Create alert rule** pane, go to **Details** specify the following settings and fill in information (leave others with their default values)and clikc **Review + Create>Create**:
172
172
173
173
| Setting | Value |
174
174
| --- | --- |
175
175
| Alert rule name |**PartsUnlimited_FailedRequests**|
176
-
| Severity |**Sev 2**|
176
+
| Severity |**2- Warning**|
177
177
| Automatically resolve alerts | cleared |
178
178
179
179
>**Note**: Metric alert rules might take up to 10 minutes to activate.
@@ -206,6 +206,7 @@ In this task, you will update release tasks.
206
206
207
207
1. In the **Resource Group name for Application Insights** dropdown list, selectthe**az400m10l01-RG** entry.
208
208
1. In the **Application Insights resource name** dropdown list, selectthe name of the **Canary** Application Insights resource, which should match the name of the **Canary** web app.
209
+
1. In the **Agent Phase**for**Canary Environment**, right click on **Enable Continuous Monitoring** and **Disable selected task(s)**
209
210
1. On the **All pipelines > PartsUnlimited-CD** pane, click the **Tasks** tab and, in the dropdown list, select**Production**.
210
211
1. With the **Production** stage selected, in the **Azure subscription** dropdown list, selectthe Azure subscription you used for the **Canary Environment** stage, shown under **Available Azure Service connections**, as we already created the service connection before when authorizing the subscription use.
211
212
1. In the **App Service name** dropdown list, selectthe name of the **Prod** web app.
@@ -241,7 +242,7 @@ In this task, you will configure pre-deployment gates.
241
242
242
243
>**Note**: Based on the value of the **Upper threshold** setting, if this query returns any active bug work Item, the release gate will fail.
243
244
244
-
1. On the **Pre-deployment conditions** pane, leave the value of the **Delay before evaluation** setting at **5 Minutes**.
245
+
1. On the **Pre-deployment conditions** pane, leave the value of the **Delay before evaluation** setting at **0 Minutes**.
245
246
246
247
>**Note**: **Delay before evaluation** represents the time before the added gates are evaluated for the first time. If no gates are added, then the deployments waitfor the duration before proceeding. To allow gate functions to initialize and stabilize (it may take some timefor it to begin returning accurate results), we configure a delay before the results are evaluated and used to determine if the deployment should be approved or rejected.
247
248
@@ -279,7 +280,7 @@ In this task, you will enable the post-deployment gate for the Canary Environmen
279
280
280
281
1. Back on the **All pipelines > PartsUnlimited-CD** pane, on the right edge of the rectangle representing the **Canary Environment** stage, click the oval shape representing the **Post-deployment conditions**.
281
282
1. On **Post-deployment conditions** pane, set the **Gates** slider to **Enabled**, click **+ Add**, and, in the pop-up menu, click **Query Azure Monitor Alerts**.
282
-
1. On **Post-deployment conditions** pane, in the **Query Azure Monitor Alerts** section, in the **Azure subscription** dropdown list, select the entry representing the connection to your Azure subscription, and, in the **Resource group** dropdown list, select the **az400m10l01-RG** entry.
283
+
1. On **Post-deployment conditions** pane, in the **Query Azure Monitor Alerts** section, in the **Azure subscription** dropdown list, select the **service connection** entry representing the connection to your Azure subscription, and, in the **Resource group** dropdown list, select the **az400m10l01-RG** entry.
283
284
1. On **Post-deployment conditions** pane, expand the **Evaluation options** and configure the following options:
284
285
285
286
- Set the value of **Time between re-evaluation of gates** to **5 Minutes**.
0 commit comments