{
    "id": "1a80b00a-38d9-4a4c-abde-7447f57d647c",
    "name": "Use Alerts",
    "slug": "use-alerts",
    "status": "published",
    "lab_type": "azure",
    "is_sample": false,
    "duration_in_seconds": 1200,
    "metadata": {},
    "session": null,
    "company": "a491bc32-c056-4946-9169-cc053387bada",
    "created": "2020-08-11T12:14:04.935208Z",
    "modified": "2023-10-03T18:57:23.540278Z",
    "is_beta": false,
    "lab_objectives": [],
    "main_learning_area": null,
    "learning_areas": [],
    "categories": [],
    "tags": [],
    "difficulty": null,
    "is_web_access": false,
    "is_lab_experience": false,
    "is_featured": false,
    "cve": null,
    "severity": null,
    "year": null,
    "classification": null,
    "is_trackable": false,
    "cpe_credits": null,
    "is_skill_check": false,
    "external_url": "https://portal.azure.com/",
    "solution_video": "24c34a8f-2c93-484d-87b2-1253df26e434",
    "explanation_video": null,
    "description": "# Task: Use Alerts\n\n## Video: Managing Alerts\n\n**Estimated time:** 30 minutes\n\n## Goal\n\nIn this task you will configure and trigger an alert for a web app.  First you will provision a web app loaded with a test application.  Then you will configure an alert for any server errors.  Finally you will use the test application to trigger the alert.\n\n## Pre-requisites\n\n1. Azure subscription\n\n## Requirements\n\n1. Provision a web app\n2. Configure an alert\n3. Trigger the alert\n\n## Requirement 1: Provision a web app\n\nYou will provision a web app by deploying an ARM template and verify that it works as expected.  \n\n- Use the following script from within a bash cloud shell:\n\n  ```bash\n  az group create -n task-alert -l eastus\n  az group deployment create -n webapp -g task-alert --template-uri https://inedemoassets.blob.core.windows.net/taskfiles/azure/deploy-webapp.json\n  ```\n\n- Navigate to the web app and confirm that it loads. Click the **Ping check** button and confirm that you get a success message.\n\n## Requirement 2: Configure an alert\n\nYou will configure an action group and an alert on the web app.  The action group will send an e-mail to you, and the action will trigger on any server errors.\n\n- Use the following settings for the action group:\n\n  |Setting|Value|\n  |---:|---|\n  |Name|**standard-email**|\n  |Short name|**email**|\n  |Resource group|**task-alert**|\n  |Action||\n  |Name|email-action|\n  |Action type|**Email/SMS/Push/Voice**|\n  |Email|**Checked**|\n  |Email|**&lt;your email&gt;**|\n\n- Use the following settings for the alert rule:\n\n  |Setting|Value|\n  |---:|---|\n  |Resource|**&lt;your web app&gt;**|\n  |Condition|**Total Http Server Errors greater than 5**|\n  |Action group|**standard-email**|\n  |Alert name|**Web Server Errors**|\n  |Description|**Send an alert whenever there are multiple server errors thrown.**|\n  |Severity|**3**|\n  |Enabled|**Yes**|\n\n## Requirement 3: Trigger the alert\n\nFinally you will use the test web application to trigger the alert.  Navigate to the web app home page, then trigger the alert using the following process:\n\n- Click the **Network load** button.\n- Set the **Number of Requests** to **100**.\n- Set the **Response size** to **10**.\n- Check the **Generate error?** box.\n- Click **Execute**.  This should generate more than 5 errors.\n- Wait for the e-mail to arrive.\n\n*Note: It may take several minutes for the e-mail to arrive.*\n\n## Clean up\n\n- Delete the **task-alert** resource group.\n\n## Solution\n\nHaving trouble completing this task?  View the demonstration video to see how to do it.",
    "description_html": "<h1>Task: Use Alerts</h1>\n<h2>Video: Managing Alerts</h2>\n<p><strong>Estimated time:</strong> 30 minutes</p>\n<h2>Goal</h2>\n<p>In this task you will configure and trigger an alert for a web app.  First you will provision a web app loaded with a test application.  Then you will configure an alert for any server errors.  Finally you will use the test application to trigger the alert.</p>\n<h2>Pre-requisites</h2>\n<ol>\n<li>Azure subscription</li>\n</ol>\n<h2>Requirements</h2>\n<ol>\n<li>Provision a web app</li>\n<li>Configure an alert</li>\n<li>Trigger the alert</li>\n</ol>\n<h2>Requirement 1: Provision a web app</h2>\n<p>You will provision a web app by deploying an ARM template and verify that it works as expected.  </p>\n<ul>\n<li>Use the following script from within a bash cloud shell:</li>\n</ul>\n<pre class=\"codehilite\"><code class=\"language-bash\">az group create -n task-alert -l eastus\naz group deployment create -n webapp -g task-alert --template-uri https://inedemoassets.blob.core.windows.net/taskfiles/azure/deploy-webapp.json</code></pre>\n\n<ul>\n<li>Navigate to the web app and confirm that it loads. Click the <strong>Ping check</strong> button and confirm that you get a success message.</li>\n</ul>\n<h2>Requirement 2: Configure an alert</h2>\n<p>You will configure an action group and an alert on the web app.  The action group will send an e-mail to you, and the action will trigger on any server errors.</p>\n<ul>\n<li>Use the following settings for the action group:</li>\n</ul>\n<table>\n<thead>\n<tr>\n<th align=\"right\">Setting</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"right\">Name</td>\n<td><strong>standard-email</strong></td>\n</tr>\n<tr>\n<td align=\"right\">Short name</td>\n<td><strong>email</strong></td>\n</tr>\n<tr>\n<td align=\"right\">Resource group</td>\n<td><strong>task-alert</strong></td>\n</tr>\n<tr>\n<td align=\"right\">Action</td>\n<td></td>\n</tr>\n<tr>\n<td align=\"right\">Name</td>\n<td>email-action</td>\n</tr>\n<tr>\n<td align=\"right\">Action type</td>\n<td><strong>Email/SMS/Push/Voice</strong></td>\n</tr>\n<tr>\n<td align=\"right\">Email</td>\n<td><strong>Checked</strong></td>\n</tr>\n<tr>\n<td align=\"right\">Email</td>\n<td><strong>&lt;your email&gt;</strong></td>\n</tr>\n</tbody>\n</table>\n<ul>\n<li>Use the following settings for the alert rule:</li>\n</ul>\n<table>\n<thead>\n<tr>\n<th align=\"right\">Setting</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"right\">Resource</td>\n<td><strong>&lt;your web app&gt;</strong></td>\n</tr>\n<tr>\n<td align=\"right\">Condition</td>\n<td><strong>Total Http Server Errors greater than 5</strong></td>\n</tr>\n<tr>\n<td align=\"right\">Action group</td>\n<td><strong>standard-email</strong></td>\n</tr>\n<tr>\n<td align=\"right\">Alert name</td>\n<td><strong>Web Server Errors</strong></td>\n</tr>\n<tr>\n<td align=\"right\">Description</td>\n<td><strong>Send an alert whenever there are multiple server errors thrown.</strong></td>\n</tr>\n<tr>\n<td align=\"right\">Severity</td>\n<td><strong>3</strong></td>\n</tr>\n<tr>\n<td align=\"right\">Enabled</td>\n<td><strong>Yes</strong></td>\n</tr>\n</tbody>\n</table>\n<h2>Requirement 3: Trigger the alert</h2>\n<p>Finally you will use the test web application to trigger the alert.  Navigate to the web app home page, then trigger the alert using the following process:</p>\n<ul>\n<li>Click the <strong>Network load</strong> button.</li>\n<li>Set the <strong>Number of Requests</strong> to <strong>100</strong>.</li>\n<li>Set the <strong>Response size</strong> to <strong>10</strong>.</li>\n<li>Check the <strong>Generate error?</strong> box.</li>\n<li>Click <strong>Execute</strong>.  This should generate more than 5 errors.</li>\n<li>Wait for the e-mail to arrive.</li>\n</ul>\n<p><em>Note: It may take several minutes for the e-mail to arrive.</em></p>\n<h2>Clean up</h2>\n<ul>\n<li>Delete the <strong>task-alert</strong> resource group.</li>\n</ul>\n<h2>Solution</h2>\n<p>Having trouble completing this task?  View the demonstration video to see how to do it.</p>",
    "tasks": "",
    "tasks_html": "",
    "published_date": "2020-06-16T16:42:39Z",
    "solutions": "",
    "solutions_html": "",
    "flags": [],
    "min_points_to_pass": null,
    "access_type": "default",
    "user_status": "unstarted",
    "user_lab_status": null,
    "user_status_modified": null,
    "user_flags": []
}