0% found this document useful (0 votes)
510 views87 pages

Azure Administration Lab Guide

Uploaded by

arun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
510 views87 pages

Azure Administration Lab Guide

Uploaded by

arun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 87

Azure Administrator (AZ-104) | Lab Guide

---------------------------------------------------------------------------------------------------------------------------------------

Azure Administrator (AZ-104) | Lab Guide


Version 22.9

Ahmed Abdelwahed
[email protected]
LinkedIn

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Contents
Identity in the Cloud ................................................................................................................................................. 4
The Azure Active Directory (Microsoft identity as a service solution) ............................................................... 4
Creating a new directory (Tenant) ........................................................................................................................ 4
Creating a new user .............................................................................................................................................. 5
Bulk User Creation ................................................................................................................................................ 6
Managing user options and permissions .............................................................................................................. 6
Upgrade Azure AD to Premium P2 ....................................................................................................................... 8
Governance and Compliance.................................................................................................................................. 11
Azure subscription types .................................................................................................................................... 11
Cost Management .............................................................................................................................................. 11
Resource Tags (Azure resources to logically organize) ....................................................................................... 11
Azure Policy ........................................................................................................................................................ 12
Role-based access control (RBAC) ...................................................................................................................... 14
All members of Global admins........................................................................................................................ 14
Azure Virtual Machines .......................................................................................................................................... 16
Creating Virtual Machines in the Portal .............................................................................................................. 16
Creating a Virtual Machine with PowerShell ...................................................................................................... 23
Azure Administration .............................................................................................................................................. 26
Azure Resource Manager ................................................................................................................................... 26
Managing Resources from ARM ......................................................................................................................... 26
Resource Manager Locks ................................................................................................................................ 26
Moving Resources .......................................................................................................................................... 27
Removing Resources and Resource Groups ................................................................................................... 28
Resource Limits .............................................................................................................................................. 29
Manage Azure Resources using cloud shell ........................................................................................................ 29
connect from local PowerShell ....................................................................................................................... 29
Through cloud shell ........................................................................................................................................ 30
Azure CLI and Working with Azure CLI Locally ................................................................................................ 30
ARM Templates .................................................................................................................................................. 31
Intersite Connectivity ............................................................................................................................................. 37
---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Peering lab .......................................................................................................................................................... 37
Network Traffic Management ................................................................................................................................ 39
Network Routing .................................................................................................................................................... 39
Configuring Azure Firewall.............................................................................................................................. 39
Network Routing and Endpoints......................................................................................................................... 44
System Routes ................................................................................................................................................ 44
Creating User defined Route .......................................................................................................................... 44
Azure Load Balancers ......................................................................................................................................... 47
Azure Storage ......................................................................................................................................................... 55
Creating an Azure Storage account .................................................................................................................... 55
Data Protection ...................................................................................................................................................... 61
Backup Azure VMs .............................................................................................................................................. 61
Backup files and folders ...................................................................................................................................... 68
Azure Site Recovery ............................................................................................................................................ 79
Configuring ASR for on-premises resources ................................................................................................... 79
Failover and migrating the VM ....................................................................................................................... 87

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Identity in the Cloud


Important Note: As of now, everything related to Azure AD has been updated to Microsoft Entra ID. The
configurations and functionalities remain the same.
AAD is a cloud-based directory and identity management service that provides application access
management and identity protection. It's often referred to as IaaS.

• Azure Active Directory Free: Basic identity and access management features for users and groups.
• Azure Active Directory Basic: Enhanced user productivity with application access and self-service
capabilities.
• Azure Active Directory Premium P1: Advanced identity protection, self-service, and access
management features.
• Azure Active Directory Premium P2: Comprehensive identity protection, advanced monitoring, and
security governance.

Creating a new directory (Tenant)

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Now you can switch to the new tenant

Creating a new user

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Bulk User Creation

Managing user options and permissions

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Upgrade Azure AD to Premium P2

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
First time you try to access with that user , you asked to setup MFA

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Governance and Compliance


Azure subscription types

- Sponsored subscriptions
- Pay as you go
- Enterprise subscriptions
-Azure for Students subscription (100$ per month for 12 months)

Cost Management

Resource Tags (Azure resources to logically organize)

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Azure Policy
add your company governance through azure policies so you can detect any non-compliant resource easily.

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Now you can see policy stat from resource portal

Also, from policy overview you can see summary for your all policies.

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Role-based access control (RBAC)


is a system that provides fine-grained access management of Azure resources. Using Azure RBAC, you can
segregate duties within your team and grant only the amount of access to users that they need to perform their
jobs.

All members of Global admins

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
through assignments tab you can see which user has this role.

Assign RBAC using Azure PowerShell and CLI

When you have large numbers of role assignments, you may prefer to use Azure PowerShell or the CLI.

#Role assignment properties


$roleName = “Contributor”
$assigneeName = [email protected]
$resourceGroupName = “DBRG”

Azure PowerShell

New-AzureRmRoleAssignment -RoleDefinitionName $roleName -SignInName $assigneeName -


ResourceGroupName $resourceGroupName

CLI

az role assignment create –role $roleName –assignee $assigneeName –resource-group $resourceGroupName

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Azure Virtual Machines


Creating Virtual Machines in the Portal

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
in first page fil the requested info starting with resource group, VM name, Image source, user name and
password to access and VM size

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Next Page its related for Disks options, you can add data disk from here or you can add it later

Next page for network options

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Next page is to add some management options like automatic shutdown machine

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Now you can go


direct to review your
configuration and
start deployment

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

now you can connect to it by RDP and install different services you need, in the following example will add web
server role
Install-WindowsFeature -name Web-Server -IncludeManagementTools

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Creating a Virtual Machine with PowerShell


First connect to your account using Connect-AzAccount and select specific subscribtion

$cred = Get-Credential
$vm = New-AzVMConfig -VMName az103vm -VMSize Standard_D1
$vm = Set-AzVMOperatingSystem `
>> -VM $vm `
>> -Windows `
>> -ComputerName az103vm `
>> -Credential $cred `
>> -ProvisionVMAgent -EnableAutoUpdate
$vm = Set-AzVMSourceImage `
>> -VM $vm `
>> -PublisherName MicrosoftWindowsServer `
>> -Offer WindowsServer `
>> -Skus 2016-Datacenter `
>> -Version latest

New-AzVm `
>> -ResourceGroupName "az103RG" `
>> -Name "az103vm" `
>> -Location "East US" `
>> -VirtualNetworkName "az103vnet" `
>> -SubnetName "az103subnet" `
>> -SecurityGroupName "az103SG" `
>> -PublicIpAddressName "az103PublicAddress" `

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
>> -OpenPorts 80,3389

Finally, you will ask to provide login credential

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
try to connect vm using mstsc /v:PublicIP

to clean up your resources use Remove-AzResourceGroup -Name AZ103RG

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Azure Administration
Azure Resource Manager
Azure Resource Manager enables you to work with the resources in your solution as a group. You can
deploy, update, or delete all the resources for your solution in a single, coordinated operation. You use
a template for deployment and that template can work for different environments such as testing,
staging, and production. Resource Manager provides security, auditing, and tagging features to help
you manage your resources after deployment.

https://portal.azure.com

ARM templates, Microsoft stepped up and really changed cloud business. In the cloud and in DevOps, the
Infrastructure as code (IaC) concept is very important and that was exactly what ARM templates were. You are
able to create an ARM template and reuse it multiple times to create similar environments. By doing so, you
automated your infrastructure deployment steps and removed possible mistakes in the deployment and
configuration process.

Managing Resources from ARM


Resource Manager Locks
Lock types
There are two types of resource locks.
● Read-Only locks, which prevent any changes to the resource.
● Delete locks, which prevent deletion.
Only the Owner and User Access Administrator roles can create or delete management locks.

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Moving Resources
Sometimes you may need to move resources to either a new subscription or a new resource group in the
same
subscription.

The following
way from
resource.

Another way from resource group as shown down.

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Removing Resources and Resource Groups

If you delete RG all resources included will removed also. Or you can delete some resources inside resource
group.

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Resource Limits
You can use each Microsoft Azure resource up to its quota. Each subscription has separate quotas and usage is
tracked per subscription. If you reach a quota cap, you can request an increase via Help + Support.

Manage Azure Resources using cloud shell


connect from local PowerShell

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
- Get-AzureRmSubscription| gm
- help Get-AzureRmTenant -examples
- Get-AzureRmTenant
- Get-AzureRmNetworkUsage
- Get-Module -ListAvailable
- Get-azurerm, commands start with azureRm
- Install-Module az, install azure module
- Login-azureRmAccount

Through cloud shell

- az account list
Azure CLI and Working with Azure CLI Locally
Azure CLI is a command-line program to connect to Azure and execute administrative commands on
Azure resources. It runs on Linux, macOS, and Windows, and allows administrators and developers to
execute their commands through a terminal or a command-line prompt, (or script!) instead of a web
browser. For example, to restart a VM, you would use a command such as the following:

You can download this tool https://aka.ms/installazurecliwindows and install it.

- Az login
- Az account list
- az group list
- az vm list
- Az storage list
- Az vm create
- Az group create

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

ARM Templates
There are two ways to deploy resource using ARM template

1- Download resource template and follow instruction below


Install-Module AzureRM
Install-Module Azure
Download and install Azure Cli
Set-ExecutionPolicy -Scope process -ExecutionPolicy Bypass
cd E:\ExportedTemplate
.\deploy.ps1 -subscriptionId a7632f95-7f0d-4342-adda-dbc286dbe45c -resourceGroupName AZ300RG -
deploymentName az300deploy1

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

az vm image list --output table

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
2- after deploy resource follow the instruction below

edit your Json file

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
search for Custom deployment in azure portal

And upload the .Json file and edit it

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
3- Using QuickStart Templates

are Resource Manager templates provided by the Azure community?

Azure Quickstart Templates (microsoft.com)

Select template

So,
you
can

deploy directly to azure

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Also, you can


edit the
selected
template to
meet your goal.

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Intersite Connectivity
Virtual Network Peering – VNet Peering

You can connect virtual networks to each other with virtual network peering. Once virtual networks are
peered, resources in both virtual networks can communicate with each other, with the same latency
and bandwidth as if the resources were in the same virtual network.

Peering lab
Create 2 subnets inside one virtual network

Virtual network: 192.168.0.0/16

Subnet1: 192.168.10.0/24

Subnet2: 192.168.20.0/24

Now create 2 VMs:

VM1: is webserver1 connected to subnet1

VM2: is webserver2 connected to subne2

Now test connectivity between both VMs (connected), this because the default NSG rule (check NSG rules)

There is default routing between all subnets in same VNet

There are two types of VNet peering.


● Regional VNet peering connects Azure virtual networks in the same region.
● Global VNet peering connects Azure virtual networks in different regions.

VNet1: 192.168.0.0/24

Subnet1: 192.168.10.0/24

Location: CentralUS

VNet2: 10.0.0.0/8

Subnet1: 10.0.0.0/8

Location: South Africa

You can connect these VNets using VNet peering as explained below

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Network Traffic Management


Network Routing
First, we will create firewall as a virtual appliance then we will learn how to route all traffic to it

Azure Firewall is a managed, cloud-based network security service that protects Azure Virtual Network
resources. It is Firewall as a Service with built-in high availability and scalability.
With Azure Firewall, you can create, enforce, and log application and network connectivity policies. Static public
IP addresses for your virtual network resources allow outside firewalls to identify traffic originating from your
virtual network. The service is integrated with Azure Monitor for logging and analytics.

Configuring Azure Firewall

• Set up a network environment (Create Resource group, VNet and VM)


• Deploy a firewall
• Create a default route
• Configure RDP and internet through the firewall rules

Create a resource group

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Create a VNet

The minimum size of the AzureFirewallSubnet subnet is /26.

Create additional subnets to associate it with firewall

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Create virtual machines

Note the private IP address. You'll use it later when you create the default route.

Deploy the firewall

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Create a default route

From all services serach for route table and after create Click Refresh then Click Subnets > Associate

Now all incoming traffic will forwarded to the firewall so, now you can allow or deny network traffic coming to that
subnet.

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Click Routes > Add.

Configure an application rule

From firewall under setting select Rules, n this lab allows incoming RDP. Also change rdp port from 3389 to 5555

also
internet is
blocked,
so we
have to
alloe
httpa nd https
traffic.

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Network Routing and Endpoints


System Routes
Azure uses system routes to direct network traffic between virtual machines, on-premises networks,
and the Internet. The following situations are managed by these system routes:
● Traffic between VMs in the same subnet.
● Between VMs in different subnets in the same virtual network.
● Data flow from VMs to the Internet.
● Site-to-Site and ExpressRoute communication through the VPN gateway.
Creating User defined Route
1- First create the routing table
2- Create routes

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

or from VNet select subnet you want to associate to the new custom route

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Azure Load Balancers


Create 3 VMs to host web server

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Now, access each server to add and configure web server (iis) using default installation settings.

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Using Load balancer public IP address, you can access web service in these 3 servers

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
To test load balancer refresh or shutdown web-2 and try to access using load balancer IP address

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Azure Storage
Azure Storage is a service that you can use to store files, messages, tables, and other types of information. You
can use Azure storage on its own—for example as a file share—but it is often used by developers as a store for
working data. Such stores can be used by websites, mobile apps, desktop applications, and many other types of
custom solutions. Azure storage is also used by IaaS virtual machines, and PaaS cloud services. You can generally
think of Azure storage in three categories.
Storage for Virtual Machines
This includes disks and files. Disks are persistent block storage for Azure IaaS virtual machines. Files are
fully managed file shares in the cloud.
Unstructured Data
This includes Blobs and Data Lake Store. Blobs are highly scaleable, REST based cloud object store. Data
Lake Store is Hadoop Distributed File System (HDFS) as a service.
Structured Data
This includes Tables, Cosmos DB, and Azure SQL DB. Tables are a key/value, auto-scaling NoSQL store.
Cosmos DB is a globally distributed database service. Azure SQL DB is a fully managed database-as-a-service
built on SQL

Creating an Azure Storage account

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Create Container and File Share

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Connect to file share

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Access all storage account items using Microsoft storage explorer

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Data Protection
Backup Azure VMs
We have to create recovery service vault

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Go for properties to check vault configuration

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Start VM backup

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Now you can restore and stop the backup

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Backup files and folders

Download both of backup agent and vault credentials to the server you want to backup (I’ll use web-2 VM)

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Now server registered and we can back up our files

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
Now going to back up user documents

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

You can also backup now

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------
To recover these data, you have to recover from azure backup agent

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Azure Site Recovery


Configuring ASR for on-premises resources
1. Prepare Infrastructure
2. Replicate Application
3. Manage Recovery Plans

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

set replication
policy

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me
Azure Administrator (AZ-104) | Lab Guide
---------------------------------------------------------------------------------------------------------------------------------------

Failover and migrating the VM

---------------------------------------------------------------------------------------------------------------------------------------
www.abdelwahed.me

You might also like