{
    "id": "0eca046d-404b-44cb-aceb-9d17940e7d22",
    "name": "Access Storage Content",
    "slug": "access-storage-content",
    "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:05.103668Z",
    "modified": "2023-10-03T18:58:26.595889Z",
    "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": "7f764545-2427-4720-ac03-5d42b3f7beee",
    "explanation_video": null,
    "description": "# Task: Access Storage Content\n\n## Video: Shared Access Signatures\n\n**Estimated time:** 30 minutes\n\n## Goal\n\nIn this task you will implement a shared access signature for a blob file.  First you will provision a storage account and a private blob container.  Then you will upload a file to the container.  Next you will define an access policy for the container.  Finally you will generate a shared access signature for the file and verify file access.\n\n## Pre-requisites\n\n1. Azure subscription\n2. A file (any file, but nothing sensitive)\n\n## Requirements\n\n1. Provision a storage account and a blob container\n2. Upload a file to the container\n3. Define an access policy for the container\n4. Use a SAS for blob access\n\n## Requirement 1: Provision a storage account and a blob container\n\nYou will begin by provisioning a storage account and a blob container.  Use the following settings:\n\n- Storage account:\n\n  |Setting|Value|\n  |---|---|\n  |Resource group|**task-storage-access**|\n  |Name|**&lt;unique name&gt;**|\n  |Performance|**Standard**|\n  |Account kind|**StorageV2**|\n  |Replication|**LRS**|\n  |Access tier|**Hot**|\n  |Security|**Enabled**|\n  |Data protection|**Disabled**|\n\n- Container:\n\n  |Setting|Value|\n  |---|---|\n  |Name|**secure**|\n  |Public access level|**Private**|\n\n## Requirement 2: Upload a file to the container\n\nUpload a file to the **secure** container.  There really isn't much else to say on this one.\n\n## Requirement 3: Define an access policy for the container\n\nDefine a storage access policy for the **secure** container.  Use the following settings:\n\n  |Setting|Value|\n  |---|---|\n  |Name|**task-policy**|\n  |Permissions|**Read, List**|\n  |Expiration|**&lt;one week from now&gt;**|\n\n## Requirement 4: Use a SAS for blob access\n\nCreate a SAS for the blob file that you uploaded in requirement 2 based on the **task-policy** policy.  Use the SAS with the url of the file to download it from a browser tab.  Follow these steps to complete this requirement:\n\n- Open a bash cloud shell session\n- Use the Azure CLI to retrieve the keys of your storage account.\n- Use the Azure CLI to generate a blob SAS for the file using the **task-policy** policy. Copy the SAS for later use.\n- Open a new browser tab and attempt to open the blob file directly using its URI. The URI can be viewed in the portal or retrieved using the Azure CLI.  This should fail.\n- Append the SAS to the blob file URI preceded by a \"?\".  This will add the SAS as a querystring to the blob URI.  Attempt to retrieve the blob file with this combination of URI and SAS.  This should work.\n\n## Clean up\n\n- Delete the **task-storage-access** 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: Access Storage Content</h1>\n<h2>Video: Shared Access Signatures</h2>\n<p><strong>Estimated time:</strong> 30 minutes</p>\n<h2>Goal</h2>\n<p>In this task you will implement a shared access signature for a blob file.  First you will provision a storage account and a private blob container.  Then you will upload a file to the container.  Next you will define an access policy for the container.  Finally you will generate a shared access signature for the file and verify file access.</p>\n<h2>Pre-requisites</h2>\n<ol>\n<li>Azure subscription</li>\n<li>A file (any file, but nothing sensitive)</li>\n</ol>\n<h2>Requirements</h2>\n<ol>\n<li>Provision a storage account and a blob container</li>\n<li>Upload a file to the container</li>\n<li>Define an access policy for the container</li>\n<li>Use a SAS for blob access</li>\n</ol>\n<h2>Requirement 1: Provision a storage account and a blob container</h2>\n<p>You will begin by provisioning a storage account and a blob container.  Use the following settings:</p>\n<ul>\n<li>Storage account:</li>\n</ul>\n<table>\n<thead>\n<tr>\n<th>Setting</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Resource group</td>\n<td><strong>task-storage-access</strong></td>\n</tr>\n<tr>\n<td>Name</td>\n<td><strong>&lt;unique name&gt;</strong></td>\n</tr>\n<tr>\n<td>Performance</td>\n<td><strong>Standard</strong></td>\n</tr>\n<tr>\n<td>Account kind</td>\n<td><strong>StorageV2</strong></td>\n</tr>\n<tr>\n<td>Replication</td>\n<td><strong>LRS</strong></td>\n</tr>\n<tr>\n<td>Access tier</td>\n<td><strong>Hot</strong></td>\n</tr>\n<tr>\n<td>Security</td>\n<td><strong>Enabled</strong></td>\n</tr>\n<tr>\n<td>Data protection</td>\n<td><strong>Disabled</strong></td>\n</tr>\n</tbody>\n</table>\n<ul>\n<li>Container:</li>\n</ul>\n<table>\n<thead>\n<tr>\n<th>Setting</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Name</td>\n<td><strong>secure</strong></td>\n</tr>\n<tr>\n<td>Public access level</td>\n<td><strong>Private</strong></td>\n</tr>\n</tbody>\n</table>\n<h2>Requirement 2: Upload a file to the container</h2>\n<p>Upload a file to the <strong>secure</strong> container.  There really isn't much else to say on this one.</p>\n<h2>Requirement 3: Define an access policy for the container</h2>\n<p>Define a storage access policy for the <strong>secure</strong> container.  Use the following settings:</p>\n<table>\n<thead>\n<tr>\n<th>Setting</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Name</td>\n<td><strong>task-policy</strong></td>\n</tr>\n<tr>\n<td>Permissions</td>\n<td><strong>Read, List</strong></td>\n</tr>\n<tr>\n<td>Expiration</td>\n<td><strong>&lt;one week from now&gt;</strong></td>\n</tr>\n</tbody>\n</table>\n<h2>Requirement 4: Use a SAS for blob access</h2>\n<p>Create a SAS for the blob file that you uploaded in requirement 2 based on the <strong>task-policy</strong> policy.  Use the SAS with the url of the file to download it from a browser tab.  Follow these steps to complete this requirement:</p>\n<ul>\n<li>Open a bash cloud shell session</li>\n<li>Use the Azure CLI to retrieve the keys of your storage account.</li>\n<li>Use the Azure CLI to generate a blob SAS for the file using the <strong>task-policy</strong> policy. Copy the SAS for later use.</li>\n<li>Open a new browser tab and attempt to open the blob file directly using its URI. The URI can be viewed in the portal or retrieved using the Azure CLI.  This should fail.</li>\n<li>Append the SAS to the blob file URI preceded by a \"?\".  This will add the SAS as a querystring to the blob URI.  Attempt to retrieve the blob file with this combination of URI and SAS.  This should work.</li>\n</ul>\n<h2>Clean up</h2>\n<ul>\n<li>Delete the <strong>task-storage-access</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-16T15:57:29Z",
    "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": []
}