{
    "id": "d50a1850-25c3-4bf4-bb9e-06b239cf5b3d",
    "name": "Manage a Web App",
    "slug": "manage-a-web-app",
    "status": "published",
    "lab_type": "azure",
    "is_sample": false,
    "duration_in_seconds": 1200,
    "metadata": {},
    "session": null,
    "company": "a491bc32-c056-4946-9169-cc053387bada",
    "created": "2020-09-24T19:28:07.498718Z",
    "modified": "2024-04-09T14:46:24.110807Z",
    "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": "f3dc8e72-dae3-4b84-9afc-67470239081e",
    "explanation_video": null,
    "description": "# Task: Manage a Web App\n\n## Video: Azure App Service Management\n\n**Estimated time:** 20 minutes\n\n## Goal\n\nIn this task you will manage a web app.  You will change the tier of the web app and create a staging deployment slot. You will deploy code to the staging deployment slot and add a configuration setting for the production and staging slots.  You will verify that both production and staging are working as expected.\n\n## Pre-requisites\n\n1. Non-production Azure subscription\n2. Azure Web app with code deployed\n3. Archive file with web app deployment\n\n*See the Pre-requisite setup for instructions on provisioning the web app and downloading the archive file.*\n\n## Requirements\n\n1. Create a deployment slot\n2. Deploy code to the deployment slot\n3. Implement slot-based settings\n\n---\n\n## Pre-requisite setup\n\nYou will need to download an archive file with web app code.  You can download the archive from:\n\n[https://inedemoworkload.blob.core.windows.net/codedeploy/webapp.zip](https://inedemoworkload.blob.core.windows.net/codedeploy/webapp.zip)\n\nThis task also requires several Azure resources.  To deploy the resources required for this task, run the following from a bash cloud shell:\n\n```bash\ncurl https://inedemoassets.blob.core.windows.net/taskfiles/azure_admin/scripts/deploy-3671-T120-pre.sh | sh\n```\n\nThis script provisions the following resources:\n\n|Resource|Name|\n|---|---|\n|Resource group|**task-webapp-rg**|\n|Web app|**&lt;a unique name&gt;|\n|App service plan|**mgmt-asp**\n\n*Support resources are not shown.*\n\n## Requirement 1: Create a deployment slot\n\nFor the first requirement you must create a deployment slot named **staging** for the web app. Prior to creating the staging slot, you must change the performance tier of the **mgmt-asp** app service plan to **S1** (standard, level 1).\n\n## Requirement 2: Deploy code to the deployment slot\n\nFor this requirement you will deploy the web app code to the staging slot.  To complete this task:\n\n- Navigate to the **staging** slot in the web app blade.\n- Navigate to advanced tools\n- Under the tools menu, select ***Zip Push Deploy***\n- Drag the **webapp.zip** file that you downloaded in the pre-requisite setup and drop it on the page\n- Wait for the installation to complete\n- Browse to the web app for the staging slot and confirm that it runs.\n\n## Requirement 3: Implement slot-based settings\n\nFinally, you are going to add a configuration setting to the staging slot.  Add an app setting named **isTest** with a value of **true** to the staging slot.  Mark the setting as a slot setting.  After the settings are saved, browse to the staging web app and verify that it now shows the following message near the top of the page:\n\n*This is a test site. Changes made to this site will not impact production data.*\n\n## Clean up\n\n- Delete the **task-webapp-rg** 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: Manage a Web App</h1>\n<h2>Video: Azure App Service Management</h2>\n<p><strong>Estimated time:</strong> 20 minutes</p>\n<h2>Goal</h2>\n<p>In this task you will manage a web app.  You will change the tier of the web app and create a staging deployment slot. You will deploy code to the staging deployment slot and add a configuration setting for the production and staging slots.  You will verify that both production and staging are working as expected.</p>\n<h2>Pre-requisites</h2>\n<ol>\n<li>Non-production Azure subscription</li>\n<li>Azure Web app with code deployed</li>\n<li>Archive file with web app deployment</li>\n</ol>\n<p><em>See the Pre-requisite setup for instructions on provisioning the web app and downloading the archive file.</em></p>\n<h2>Requirements</h2>\n<ol>\n<li>Create a deployment slot</li>\n<li>Deploy code to the deployment slot</li>\n<li>Implement slot-based settings</li>\n</ol>\n<hr />\n<h2>Pre-requisite setup</h2>\n<p>You will need to download an archive file with web app code.  You can download the archive from:</p>\n<p><a href=\"https://inedemoworkload.blob.core.windows.net/codedeploy/webapp.zip\">https://inedemoworkload.blob.core.windows.net/codedeploy/webapp.zip</a></p>\n<p>This task also requires several Azure resources.  To deploy the resources required for this task, run the following from a bash cloud shell:</p>\n<pre class=\"codehilite\"><code class=\"language-bash\">curl https://inedemoassets.blob.core.windows.net/taskfiles/azure_admin/scripts/deploy-3671-T120-pre.sh | sh</code></pre>\n\n<p>This script provisions the following resources:</p>\n<table>\n<thead>\n<tr>\n<th>Resource</th>\n<th>Name</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Resource group</td>\n<td><strong>task-webapp-rg</strong></td>\n</tr>\n<tr>\n<td>Web app</td>\n<td>**&lt;a unique name&gt;</td>\n</tr>\n<tr>\n<td>App service plan</td>\n<td><strong>mgmt-asp</strong></td>\n</tr>\n</tbody>\n</table>\n<p><em>Support resources are not shown.</em></p>\n<h2>Requirement 1: Create a deployment slot</h2>\n<p>For the first requirement you must create a deployment slot named <strong>staging</strong> for the web app. Prior to creating the staging slot, you must change the performance tier of the <strong>mgmt-asp</strong> app service plan to <strong>S1</strong> (standard, level 1).</p>\n<h2>Requirement 2: Deploy code to the deployment slot</h2>\n<p>For this requirement you will deploy the web app code to the staging slot.  To complete this task:</p>\n<ul>\n<li>Navigate to the <strong>staging</strong> slot in the web app blade.</li>\n<li>Navigate to advanced tools</li>\n<li>Under the tools menu, select <strong><em>Zip Push Deploy</em></strong></li>\n<li>Drag the <strong>webapp.zip</strong> file that you downloaded in the pre-requisite setup and drop it on the page</li>\n<li>Wait for the installation to complete</li>\n<li>Browse to the web app for the staging slot and confirm that it runs.</li>\n</ul>\n<h2>Requirement 3: Implement slot-based settings</h2>\n<p>Finally, you are going to add a configuration setting to the staging slot.  Add an app setting named <strong>isTest</strong> with a value of <strong>true</strong> to the staging slot.  Mark the setting as a slot setting.  After the settings are saved, browse to the staging web app and verify that it now shows the following message near the top of the page:</p>\n<p><em>This is a test site. Changes made to this site will not impact production data.</em></p>\n<h2>Clean up</h2>\n<ul>\n<li>Delete the <strong>task-webapp-rg</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": "2021-08-03T16:51:52Z",
    "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": []
}