Windows Server Storage1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Azure Storage – Practical Exercises

Overview
This course includes optional exercises where you can try out the techniques demonstrated in
the course for yourself. This guide lists the steps for the individual exercises.

Setup
If you already have a Microsoft Azure subscription, you can skip this section. Otherwise, follow
these steps to create a free trial subscription. You will need to provide a valid credit card
number for verification, but you will not be charged for Azure services – for more information,
see the frequently asked questions on the Azure sign-up page.

1. If you already have a Microsoft account that has not already been used to sign up for a
free Azure trial subscription, you’re ready to get started. If not, don’t worry, just create
a new Microsoft account.
2. After you’ve created a Microsoft account, create your free Microsoft Azure account.
You’ll need to sign-in with your Microsoft account if you’re not already signed in. Then
you’ll need to:
 Enter your cellphone number and have Microsoft send you a text message to
verify your identity.
 Enter the code you have been sent to verify it.
 Provide valid payment details. This is required for verification purposes only –
your credit card won’t be charged for any services you use during the trial
period, and the account is automatically deactivated at the end of the trial
period unless you explicitly decide to keep it active.
Module 1 – Planning Storage

Create a Storage Account (Portal)

In this exercise, you will create a new storage account in the Azure portal. Once created you will
explore some of the basic file management capabilities, including the use of file shares.

1. Navigate to the new Azure Portal at https://portal.azure.com and sign in.


2. Click Storage Accounts on the Hub menu.
 If you do not see Storage Accounts on the Hub menu, click More Services.
 Type storage accounts in the filter to reveal the available options for managing
storage accounts in the Azure Portal. Mark Storage Accounts as a favorite to pin it to
your Hub menu.
3. On the Storage accounts blade, if you have any existing storage accounts they will
appear in the list.
4. On the Storage accounts blade, click Add.
5. On the Create storage account blade, fill in the following values to create a new storage
account. Click Create when you are finished entering the information. As you enter the
information take a moment to use the Information icon to view details about the
required information.
 Name: <your choice>
 Deployment model: Resource Manager
 Account kind: General purpose
 Performance: Standard
 Replication: Read-access geo-redundant storage (RA-GRS)
 Storage service encryption: Disabled
 Subscription: <YourSubscription>
 Resource Group: <Create a new resource group>
 Location: <YourLocation>
6. On the menu bar, monitor the alerts for progress as the new storage account is created.
7. On the Hub menu, click Storage accounts. Confirm that the new storage account has
been created.
8. Double-click your storage account and review the options that are available. Review the
storage account Essentials area. Explore the Blobs, Files, Tables, and Queues areas.
Create a Storage Account (PowerShell)

In this exercise, you will create a new storage account using PowerShell.

1. Open an elevated Windows PowerShell ISE window.


2. Locate cmdlets dealing with the Azure login.
Get-Command *login*
3. Read the Help pages on the Login-AzureRmAccount cmdlet. If prompted to update the
help pages, do so.
Get-Help Login-AzureRmAccount -full
4. Login to Azure. When prompted enter your Azure credentials.
Login-AzureRmAccount
5. Locate cmdlets dealing with Azure subscriptions.
Get-Command *azuresubscriptions*
6. Use the Get-AzureRmSubscription cmdlet to retrieve your subscription name.
Get-AzureRmSubscription
7. Specify your subscription.
Select-AzureRmSubscription -SubscriptionName <your subscription name>
8. You will need resource group information. Make a note of the ResourceGroupName.
Get-AzureRmResourceGroup
9. You will need SkuName information. This is the replication scheme for the storage
account. Consult the help for applicable choices such as Standard_RAGRS.
10. Use New-AzureRMStorageAccount to create a new storage account.
New-AzureStorageAccount -Name <your choice> -ResourceGroupName <your
resource group> -Location <your location> -SkuName <replication scheme>
11. Use Get-AzureRmStorageAccount to verify the account was created. Alternatively, you
could return to the portal and refresh the storage account page.
Get-AzureRmStorageAccount

Note: Throughout the course make an effort to try to use this tool. You will find it easy to
use.

Install Azure PowerShell


In this exercise, you will install Azure PowerShell. Note: If you have already installed Azure
PowerShell you can skip this exercise.

1. From your computer, open an elevated PowerShell prompt.


Cmdlets for Resource Manager
2. Run the Install-Module AzureRM command. This will install the AzureRM module which
represents resource management.
3. If you get prompted to install and import the NuGet provider, Type Y and then press the
Enter key.
4. If you are notified that the repository is untrusted, confirm that you want to install the
modules by typing Y and then pressing the Enter key. The installation process will take
several minutes as packages are downloaded and installed.
5. After the download and installation is finished, run the Import-Module AzureRM command.
6. Note: If you receive a message about running scripts on your computer has been disabled,
temporarily change the execution policy:
Set-ExecutionPolicy Unrestricted
After the import command is complete, return the execution policy to restricted.
Set-ExecutionPolicy Restricted
Cmdlets for Service Manager (Classic) – also includes basic cmdlets such as subscription
management
1. Run the Install-Module Azure command. This will install the Azure module which
represents service management.
2. If you are notified that the repository is untrusted, confirm that you want to install the
modules by typing Y and then pressing the Enter key.
3. Once the download and installation is finished, run the Import-Module Azure command.
Explore storage cmdlets and update the Help pages
1. Run Get-Command *azurestorage* to view storage cmdlets you can use in this course.
2. This is a good time to run Update-Help so you have the latest help pages. Don’t be
concerned if some libraries don’t update. You can always find the Help pages on TechNet.

If you have trouble installing the PowerShell modules from the PowerShell gallery, you can
try the WebPI method instead. Visit http://aka.ms/webpi-azps to download and install the
modules.
Install Azure Storage Explorer

In this exercise, you will install the Microsoft Azure Storage Explorer desktop application,
connect to your Azure account, and explore the various options for managing your data in the
Azure cloud.

1. Navigate to the Storage Explorer download site.


2. Download and install the appropriate version (Windows, Mac, or Linux).
3. Launch the tool.
4. In the Connect to Azure Storage window, ensure that the option to sign in using your
Azure account is selected and then click Connect.
5. In the Sign in to your account window, enter your Azure administrative credentials and
then click Sign in. Complete your authentication as needed (for example, if you have
two-factor authentication enabled, you might be prompted for the second factor).
6. On the menu bar, click the person icon for Azure account settings.
7. Your Azure subscriptions for your account will be displayed. Click the checkbox for your
Azure subscription (or click All subscriptions) and then click Apply.
8. Notice that you are able to view Local and Attached storage as well as your subscription
storage.
9. If you followed the previous exercises you should see two storage accounts under your
subscription.
10. Take a moment to browse the storage accounts. You may see diagnostic tables
capturing metric data.

Note: Throughout the course make an effort to try to use this tool. You will find it easy to
use.
Install AZCopy

In this exercise you will install the AzCopy tool and explore the syntax.
1. Download and install the latest version of AzCopy - http://aka.ms/downloadazcopy.
2. Locate the executable which is typically installed in either
%ProgramFiles(x86)%\Microsoft SDKs\Azure\AzCopy or %ProgramFiles%\Microsoft
SDKs\Azure\AzCopy.
3. Open an elevated Command Prompt and navigate to the AZCopy installation directory.
4. View the Help pages for the utility.
AzCopy /?
5. Read through the examples at the end of the Help page.

Note: Throughout the course make an effort to try to use this tool. You will find it easy to
use.

You might also like