How Azure Site Recovery works — architecture overview
Conceptually, Azure Site Recovery replicates VM data from a primary (source) region to a secondary (target) region using a staged cache and managed disks. The high-level workflow:- Source environment: VMs running in an availability set, connected to a VNet/subnets in Region A.
- Enable (enroll) VM for ASR: the ASR Mobility service extension is installed on the VM and a cache (staging) storage account is created in the source region to stage replication data.
- ASR provisions infrastructure in the target region (Region B): resource group, virtual network, subnets, availability sets, and other related resources. ASR commonly appends an identifier (for example,
-asr-west-us) to created resources. - Data replication: the cache storage account acts as an intermediary to replicate data to managed disks in the target region.
- Failover: if the primary region fails, ASR creates VM instances in the secondary region and attaches the replicated managed disks so the VM can run from Region B.

Key ASR components
For full product docs see: Azure Site Recovery overview and Recovery Services vault documentation.
Portal walkthrough (single VM)
This section walks through configuring ASR for one VM from the Azure portal. Steps assume you have a VM (example name: ASR Demo 1) running in the source region.- Open the VM in the Azure portal and select Disaster recovery.
- Choose or create a Recovery Services vault. Select the target region for replication (for example, West US if the VM is in East US).
- Configure Advanced settings:
- Control the infrastructure ASR will create in the target region: resource group, virtual network, availability set, etc.
- ASR typically appends identifiers such as
-asr-west-usto created resource names.
- Single-instance VMs: proximity placement groups are not commonly used; capacity reservations are optional.
- Storage settings: choose the cache (staging) storage account in the source region.
- Replication settings: choose the vault, replication policy, and replica disk type.
- Extension settings: control installation and management of the ASR Mobility service extension on the VM.

- Click Review and Start Replication to see the full list of resources ASR will provision in the target region (replica managed disks, ASR resource group, VNet, availability set, etc.).
- Click Start Replication to provision the target resources and begin initial replication. The initial provisioning and seeding can take time depending on data size and network bandwidth.
Test failover — run a non-disruptive drill
Use a test failover to perform a DR drill without impacting production replication:- Test failover creates a temporary VM in the target region and attaches the replicated disks to it.
- You can choose the recovery point to use (latest processed, app-consistent point, etc.).
- Select the virtual network to place the test VM in; ASR creates an isolated test VM so production replication continues.


Practical items during test failover
- Network Security Groups (NSGs) are not always created or associated automatically. You may need to create and associate an NSG with the DR subnet to allow inbound traffic (for example, HTTP 80 and RDP 3389).
- Public IPs are not automatically created for test VMs. If public access is required (e.g., to validate a web server or RDP), create a Public IP resource and manually attach it to the test VM’s network interface.
During test failovers, lack of proper NSG rules or a Public IP can block your ability to validate services. Confirm network security and IP assignment before expecting external access to the test VM.

Cleanup and real failover
- Cleanup test failover: after verification, use Cleanup test failover from the replicated items blade to delete the test VM and temporary resources created during the test.
- Real failover: to fail over production workloads permanently to the secondary region, use the Failover option. After the primary region is restored, perform a reverse operation (re-protect and commit the failback) to resume replication back to the primary region.
Advanced features
ASR includes advanced orchestration capabilities not covered here, such as Recovery Plans, runbook automation, and traffic management integration with Azure Traffic Manager. These features help coordinate multi-VM application failovers and global traffic routing.- Azure Traffic Manager overview: https://learn.microsoft.com/en-us/azure/traffic-manager/traffic-manager-overview
Focus on the high-level ASR workflow: enable replication for a VM, understand that ASR installs an extension and uses a cache/staging storage account, run test failovers to drill procedures, perform failover to the secondary region, and re-protect/commit to fail back to the primary region. You do not need to memorize every advanced automation option.