Lab 04 - Manage Azure Storage

.pdf

School

Seneca College *

*We aren’t endorsed by this school

Course

400

Subject

Industrial Engineering

Date

Apr 3, 2024

Type

pdf

Pages

12

Uploaded by CountJay1914

MST400 - Lab 04: Manage Azure Storage Student Lab Manual Winter 2024
1 Lab scenario You need to evaluate the use of Azure storage for storing files residing currently in on-premises data stores. While majority of these files are not accessed frequently, there are some exceptions. You would like to minimize cost of storage by placing less frequently accessed files in lower-priced storage tiers. You also plan to explore different protection mechanisms that Azure Storage offers, including network access, authentication, authorization, and replication. Finally, you want to determine to what extent Azure Files service might be suitable for hosting your on-premises file shares. Objectives In this lab, you will: Task 1: Provision the lab environment Task 2: Create and configure Azure Storage accounts Task 3: Manage blob storage Task 4: Manage authentication and authorization for Azure Storage Task 5: Create and configure an Azure Files shares Task 6: Manage network access for Azure Storage Task 7: Summary questions
Instructions Task 1: Provision the lab environment In this task, you will deploy an Azure virtual machine that you will use later in this lab. 1. Sign in to the Azure portal . 2. In the Azure portal, open the Azure Cloud Shell by clicking on the icon in the top right of the Azure Portal. If prompted to select either Bash or PowerShell , select PowerShell . 3. From the Cloud Shell pane, run the following to create the resource group that will be hosting the virtual machine (replace the [Azure_region] placeholder with the name of an Azure region where you intend to deploy the Azure virtual machine) Note : To list the names of Azure regions, run (Get-AzLocation).Location $location = '[Azure_region]' $rgName = '<StudentID>-mst400-w24-rg0' New-AzResourceGroup -Name $rgName -Location $location 4. Close the Cloud Shell pane. 5. From portal, create a Virtual Machine using the following values and leave the rest as defaults. Setting Value Subscription the name of the Azure subscription you are using in this lab Resource group <StudentID>-mst400-w24 -rg0 VM name mst400-04-vm0 Location Name of region where you created the resource group in previous step Image Windows 10 Pro Size Standard_B2s Disk Standard_HDD Task 2: Create and configure Azure Storage accounts In this task, you will create and configure an Azure Storage account. 1. In the Azure portal, search for and select Storage accounts , and then click + New .
3 2. On the Basics tab of the Create storage account blade, specify the following settings (leave others with their default values): Setting Value Subscription the name of the Azure subscription you are using in this lab Resource group Create a new resource group <StudentID>-mst400-w24-rg1 Storage account name any globally unique name between 3 and 24 in length consisting of letters and digits (ex. <studentID>sa ) Location the name of an Azure region where you can create an Azure Storage account Performance Standard Redundancy Geo-redundant storage (GRS) 3. Click Next: Advanced > , on the Advanced tab of the Create storage account blade, review the available options, accept the defaults, and click Next: Networking > . 4. On the Networking tab of the Create storage account blade, review the available options, accept the default option Enable public access from all networks and click Next: Data protection > . 5. On the Data protection tab of the Create storage account blade, review the available options, accept the defaults, click Review + Create , wait for the validation process to complete and click Create . Note : Wait for the Storage account to be created. This should take about 2 minutes. 6. On the deployment blade, click Go to resource to display the Azure Storage account blade. 7. On the Storage account blade, in the Data management section, click Redundancy and note the secondary location. 8. In the Redundancy drop-down list select Locally redundant storage (LRS) and save the change. 9. Note that, at this point, the Storage account has only the primary location. 10. From settings section, select the Configuration blade of the Storage account, set Blob access tier (default) to Cool , and save the change. Note : The cool access tier is optimal for data which is not accessed frequently. Task 3: Manage blob storage In this task, you will create a blob container and upload a blob into it.
4 1. On the Storage account blade, in the Data storage section, click Containers . 2. Click + Container and create a container with the following settings: Setting Value Name mst400-04-container Public access level Private (no anonymous access) 3. In the list of containers, click mst400-04-container and then click Upload . 4. Browse to Labfiles\07\LICENSE and click Open . 5. On the Upload blob blade, expand the Advanced section and specify the following settings (leave others with their default values): Setting Value Authentication type Account key Blob type Block blob Block size 4 MB Access tier Hot Upload to folder <studentID>-licenses (ex. hkazemi8899- licenses) Note : Access tier can be set for individual blobs. 6. Click Upload . Note : Note that the upload automatically created a subfolder named <studentID>-licenses . 7. Back on the mst400-04-container blade, click <studentID>-licenses and then click LICENSE . 8. On the <studentID>-licenses /LICENSE blade, review the available options. Note : You have the option to download the blob, change its access tier (it is currently set to Hot ), acquire a lease, which would change its lease status to Locked (it is currently set to Unlocked ) and protect the blob from being modified or deleted, as well as assign custom metadata (by specifying an arbitrary key and value pairs). You also can Edit the file directly within the Azure portal interface, without downloading it first. You can also create snapshots, as well as generate a SAS token (you will explore this option in the next task). Task 4: Manage authentication and authorization for Azure Storage In this task, you will configure authentication and authorization for Azure Storage.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help