20533 Module 6 Lab Answer Key
20533 Module 6 Lab Answer Key
Lab: Planning and Implementing Storage
Scenario
The IT department at A. Datum uses an asset management application to track IT assets, such as computer hardware and peripherals. The application stores images of asset types and invoices for purchases of specific assets. As part of A. Datum�s evaluation of Microsoft Azure, you need to test Azure storage features as part of your plan to migrate the storage of these images and invoice documents to Azure.
| New Portal - note: no tab says containers but all 4 types of storage are listed |
Exercise 1: Creating and Configuring Storage
Note: - You may want to compare how Storage Containers and their contents appear in the Classic Portal vs the New Portal
Note: - You may want to compare how Storage Containers and their contents appear in the Classic Portal vs the New Portal
| Classic Portal - see "Containers" tab |
u Task 1: Create a Storage Account
1. Ensure that you are logged on to 20533B-MIA-CL1 as Studentwith the password Pa$$w0rd, and that the setup script you ran in the Preparing the Environment demonstration has completed.
2. Start Internet Explorer and browse to https://portal.azure.com. When prompted, sign in using the credentials for the Microsoft account associated with your Azure subscription.
3. On the menu hub, click NEW, and then in the search bar type Storage
4. NOTE: you are trying to create a Storage Account
5. On the results blade click Storage Account, and
(Select "Classic" model- do NOT accept the default "Resource Manager") then click Create.
5. On the results blade click Storage Account, and
(Select "Classic" model- do NOT accept the default "Resource Manager") then click Create.
6. In the Storage account blade, apply the following settings and click Create:
� STORAGE: Enter a valid, unique name
� PRICING TIER: Standard-GRS
� RESOURCE GROUP: Click the current resource group, and then click Create a new resource group. Name the new resource group Asset-Management and click OK
� SUBSCRIPTION: Your Azure subscription
� LOCATION: Select the region nearest to you
� DIAGNOSTICS: Leave as not configured
� Add to Startboard: Clear
7. Wait for the storage account to be created. You can observe the progress in the notification area at the top right
8. In the hub menu, click BROWSE. Then click Storage.Accounts (classic)
NOTE: you are still in the New Portal

NOTE: you are still in the New Portal
9. In the Storage blade, click the storage account you just created.
10. In the blade for your storage account, click the Blobs tile.
11. On the Blobs blade, click Container. In the New Container blade, apply the following settings and click OK:
12. NAME: asset-images
13. Access type: Private

14. If the new container does not appear in the Blob Service blade within a few seconds, refresh the page in Internet Explorer.
15. Close the Blob Service blade, but keep the blade for your storage account open.
16. On the taskbar, right-click Microsoft Azure PowerShell and click Run ISE as Administrator. Click Yes when prompted.
17. In the PowerShell ISE, click File and then click Open.
18. In the Opendialog, browse to D:LabfilesLab06Starter.
19. Click ExampleCommands.ps1and then click Open.
20. If the Script pane is not visible, on the View menu, click Show Script Pane.
21. In the PowerShell ISE, in the Script pane, type the name of the storage account you created in the previous task.
u Task 2: Install AzCopy
1. In Internet Explorer, open a new tab and browse to http://aka.ms/AzCopy.
2. In the Download and install AzCopysection, click the link to install the latest version of AzCopy.
3. When prompted to run or save the file, click Run. Then click Yes if prompted to allow the program to make changes to the computer, and complete the wizard to install the AzCopy using the default installation options.
4. If you get a Microsoft Azure Storage Tools - v3.0.0 Setup dialog box, click Cancel.
5. Right-click the Start button and click System. Then in the System window, click Advanced system settings.
6. In the System Properties dialog box, on the Advanced tab, click Environment Variables.
7. In the Environment Variablesdialog box, in the System variables list, select Path. Then click Edit.
8. In the Edit System Variable dialog box, in the Variable value text box, append the following text (including the semicolon at the beginning) to the existing value, and then click OK:
;C:Program Files (x86)Microsoft SDKsAzureAzCopy.
9. In the Environment Variablesdialog box, click OK. Then in the System Properties dialog box, click OK and close the System window.
10. Right-click the Start button and click Command Prompt. Then in the command prompt window, enter the following command:
AzCopy /?
11. View the syntax information that is displayed. Keep the command prompt window open for the next task.
u Task 3: Use AzCopy to Upload Blobs
NOTE: In order for azcopy to accept commands you must use DOS commands to change directory to the folder with the file you want to copy to the cloud. In practice this can be avoided by modifying the "path" variable

NOTE: In order for azcopy to accept commands you must use DOS commands to change directory to the folder with the file you want to copy to the cloud. In practice this can be avoided by modifying the "path" variable

1. In Internet Explorer, on the Microsoft Azure tab, in the blade for your storage account, click KEYS.
2. On the Manage keys blade, click the Copy icon next to the primary access key. If prompted to allow access to the clipboard, click Allow access.
3. In the command prompt window, enter the following commands to change the current directory context:
D:
CD D:LabfilesLab06Starter
4. Switch to the PowerShell ISE.
5. In the PowerShell ISE, in the Script pane, locate the following code:
AzCopy /Dest:https://<your storage account>.blob.core.windows.net/asset-images /destkey:<your primary access key> /Source:asset-images
6. Replace <you
Comments
Post a Comment