Академический Документы
Профессиональный Документы
Культура Документы
3. In the hub menu, click + Create resource, and then click Storage.
4. On the Storage blade, click Storage account - blob, file, table, queue.
5. On the Create storage account blade, apply the following settings, and then click
Create:
• Performance: Standard
• Resource group: ensure that Create new is selected and, in the textbox below,
type 20533D0602-LabRG.
• Location: the same Azure region that you chose when running the provisioning
script at the beginning of this module
7. In the hub menu, click All services, and then, in the list of services, click
Storage accounts.
8. On the Storage accounts blade, click the storage account that you just created.
11. In the New container section, specify the following settings, and then click OK:
• Name: asset-images
2. In the Download and install AzCopy section, click the latest version of
AzCopy on Windows link.
3. When prompted, click Save. Wait until the download completes and then click
Run. This will automatically launch the setup wizard. Use the wizard to install
AzCopy with the default settings. During the setup, when prompted, in the User
Account Control dialog box, click Yes.
4. On the taskbar, right-click Windows PowerShell, and then click Run ISE as
Administrator. When prompted, in the User Account Control dialog box, click
Yes.
3. On the access keys blade, click the Click to copy icon next to Storage account
name. If prompted to allow access to Clipboard, click Allow access.
5. Switch to the Microsoft Edge window and, on the access keys blade, click the
Click to copy icon next to key1.
10. In the Services section of the blade, click the Blobs tile.
12. On the asset-images blade, verify that there are six new blobs.
Result: At the end of this exercise, you should have created a new Azure storage account with a container
named asset-images and copied files from your local computer to that container by using the AzCopy
utility.
3. In the sign-in windows that appears, sign in by using the Microsoft account that
is the Service Administrator of your Azure subscription.
4. If you have multiple subscriptions associated with your Microsoft account, to
identify the subscription in which you are going to create a virtual network,
type the following command, and then press Enter:
Get-AzureRmSubscription
5. Note the value of the Id property for each subscription in the output of the
previous command. To specify the subscription in which you are going to create
a virtual network, type the following commands, and then press Enter (replace
SubscriptionId with the actual SubscriptionId property of that subscription):
Set-AzureRmContext -SubscriptionId 'SubscriptionId'
• Sets the location of the folder hosting source files to be copied to the Azure
Storage file share directory
• Loops through the files in the source folder and uses the Set-
AzureStorageFileContent cmdlet to copy each of them the folder in the Azure
file share.
11. Observe the script as it runs, and then view the output. When you finish, close
Windows PowerShell ISE.
Task 2: Access a file share from an Azure VM
1. From the MIA-CL1 lab VM, in Microsoft Edge, on the Azure portal, click All
services, click Virtual machines.
2. On the Virtual machines blade, click ellipsis to the right of the 20533D0601-
vm1 entry and click Connect.
5. In the Windows Security dialog box, type the following credentials, and then
click OK:
• Password: Pa55w.rd1234
6. If another Remote Desktop Message displays, select the Don’t ask me again for
connections to this computer checkbox, and then click Yes.
8. Wait for the Server Manager window to open, then click Local Server, on the
Local Server page, click the On link next to the IE Enhanced Security
Configuration entry, click Off for Administrators, and then click OK.
11. In the hub menu, click All services, and then click Storage accounts.
12. On the Storage accounts blade, click the storage account that you created in
the previous exercise, and then on the blade for your storage account, click the
Files tile.
15. On the Connect blade, click the Click to Copy icon next to the code appearing in
the Connecting from Windows section. If prompted whether to allow the
webpage to access your Clipboard, click Allow access.
16. Click Start, right-click Windows PowerShell ISE, in the right-click menu, click
More and click Run as administrator.
17. In the Administrator: Windows PowerShell ISE window, if the script pane is
not visible, click View and then, in the View menu, click Show Script Pane.
19. In the command line you copied, replace [drive letter] with Z: (if it is not
already replaced).
Note: If your key (password) has a / in it, the copy to clipboard will escape this character and replace it
with \/. This will cause the command to fail. Correct the escaped characters or copy the key directly from
Azure.
20. Run the command by pressing the F5 key
21. Start File Explorer, click This PC, and verify that the command executed
successfully, resulting in creation of the Z: drive mapping.
22. Back in the Windows PowerShell ISE window, in the console pane, run the
following command to view the contents of the invoices folder on the Z: drive,
which is now mapped to the assets file share that you created in a previous
task:
Get-ChildItem -Path 'Z:\invoices'
24. Close the Windows PowerShell ISE window and Internet Explorer, and then
sign out of the Remote Desktop session to 20533D0601-vm1.
Result: At the end of this exercise, you should have created an Azure storage account file share named
assets that contains a folder named invoices with copies of invoice documents. You should have also
mapped a drive from an Azure VM to the file share.
2. On the Recovery services vault blade, specify the following settings and click
Create:
• Name: vault20533D06
• Location: the same Azure region that you chose when running the provisioning
script at the beginning of this module
3. If prompted, in the User Access Control dialog box, click Yes. This will start
Microsoft Azure Recovery Services Agent Setup Wizard.
8. Switch to Microsoft Edge displaying the Azure portal and, on the Prepare
infrastructure blade, click Download after you selected “Already downloaded
or using the latest Recovery Services Agent”.
9. When prompted, click Save. This will save the vault credentials file to your
Downloads folder.
10. Switch back to the Register Server Wizard and, on the Vault Identification
page, click Browse.
11. In the Select Vault Credentials dialog box, browse to the Downloads folder,
click the .VaultCredentials file you downloaded, and click Open.
13. On the Encryption Setting page of the Register Server Wizard, click
Generate Passphrase.
14. On the Encryption Setting page of the Register Server Wizard, next to the
Enter a location to save the passphrase, click Browse.
17. On the Server Registration page of the Register Server Wizard, ensure that
the Launch Microsoft Azure Recovery Services Agent checkbox is selected
and click Close. This will automatically open the Microsoft Azure Backup
console.
2. In the Schedule Backup Wizard, on the Getting started page, click Next.
4. In the Select Items dialog box, expand **E:\Labfiles06*, select the following
folders, and then click OK:
• asset-images
• invoices
6. On the Specify Backup Schedule page, ensure that the Day option is selected,
in the first drop-down list box below the At following times (Maximum
allowed is three times a day) box, select 4:30 AM, and then click Next.
7. On the Select Retention Policy page, accept the defaults, and then click Next.
8. On the Choose Initial Backup type page, accept the defaults, and then click
Next.
9. On the Confirmation page, click Finish. When the backup schedule is created,
click Close.
2. In the Back Up Now Wizard, on the Confirmation page, click Back Up.
3. When the backup is complete, click Close, and then close Microsoft Azure
Backup.
4. Switch to the Azure portal, navigate back to the Recovery Services vault blade
and click Backup items.
6. On the Backup Items (Azure Backup Agent) blade, verify that there is an
entry referencing the E:\ drive of mia-cl1..
Task 6: Stop backups and delete the Azure Recovery services vault
1. On the Backup Items (Azure Backup Agent) blade, click the entry referencing
the E:\ drive of mia-cl1..
2. On the E:\ on mia-cl1. blade, click the mia-cl1. link (under the Computer Name
section).
4. On the Delete blade, in the TYPE THE SERVER NAME text box, type mia-cl1.
and click Delete.
Note: Don’t forget to add the dot at the end of the server name.
5. Navigate back to the recovery services vault blade and click Overview.
2. On the taskbar, right-click the Windows PowerShell icon, and then click Run
as Administrator. In the User Account Control dialog box, click Yes.
5. If you have multiple Azure subscriptions, select the one you want the script to
target.
10. Right-click unoccupied area of the dashboard and, in the right-click menu, click
Reset to default state. When prompted to confirm, click Yes.