Search This Blog

2020-09-07

Lab 10. Backup Azure VM/ Azure Service Vault

1. Upload files Upload and upload the files \Allfiles\Labs\10\az104-10-vms-template.json and \Allfiles\Labs\10\az104-10-vms-parameters.json

Location: https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator/tree/master/Allfiles/Labs/10

2. Create the resource group

$location = 'eastus'

$rgName = 'az104-10-rg0' 

New-AzResourceGroup -Name $rgName -Location $location

3. create the first virtual network and deploy a virtual machine into it 

New-AzResourceGroupDeployment ` 
-ResourceGroupName $rgName ` 
-TemplateFile $HOME/az104-10-vms-template.json ` 
-TemplateParameterFile $HOME/az104-10-vms-parameters.json ` 
-AsJob

4. create a recovery services vault - az104-10-rsv1

5. Backup configuration of the new RSV


6. Security setting on the RSV


7. Configure VM level backup




8. Select VM to backup and then select Enable Backup (which will appear after selecting the VM)

9.  Take manual Backup




10. Implement File and folder backup for VM1
    a.    Login to the VM1
    b.    In the Server Manager window, click Local Server, click IE Enhanced Security Configuration and turn it Off for Administrators.
    c.    Prepare Infrastructure
    

    d. Download and install the agent
    
    e.    Proceed to registration

f. Wait the Vault Credential Step

g. Download Vault Credential and save it

h.    Browse the Vault credential - Step f above


i. Generate Passphrase

j.    On the Server Registration page of the Register Server Wizard, review the warning regarding the location of the passphrase file, ensure that the Launch Microsoft Azure Recovery Services Agent checkbox is selected and click Close. This will automatically open the Microsoft Azure Backup console.

k.    Configure Microsoft Azure Backup

l.    
 

m.    


n.    


o.


p.


q.



11.    Perform file recovery by using Azure Recovery Services agent

a.

b.On the Select Volume and Date page, in the Select the volume drop down list, select C:\, accept the default selection of the available backup, and click Mount.


c. From the Command Prompt, run the following to copy the restore the hosts file to the original location (replace [recovery_volume] with the drive letter of the recovery volume you identified earlier):

robocopy F:\Windows\System32\drivers\etc C:\Windows\system32\drivers\etc hosts /r:1 /w:1


12.    Perform file recovery by using Azure virtual machine snapshots
a.    Login to VM0 and azure portal
b.
c.

d.

e.

f.

g.

h.
robocopy [os_volume]:\Windows\System32\drivers\etc C:\Windows\system32\drivers\etc hosts /r:1 /w:1

i. Unmount when recover is done


13. Review the Azure Recovery Services soft delete functionality













14. Delete all resources

Get-AzResourceGroup -Name 'az104-10*' | Remove-AzResourceGroup -Force -AsJob



No comments: