You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/site-recovery/azure-stack-site-recovery.md
+26-31Lines changed: 26 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,12 @@
1
1
---
2
2
title: Replicate Azure Stack VMs to Azure using Azure Site Recovery | Microsoft Docs
3
3
description: Learn how to set up disaster recovery to Azure for Azure Stack VMs with the Azure Site Recovery service.
4
-
services: site-recovery
5
-
author: rayne-wiselman
6
-
manager: carmonm
7
4
ms.topic: conceptual
8
-
ms.service: site-recovery
9
5
ms.date: 08/05/2019
10
-
ms.author: raynew
11
6
---
12
7
# Replicate Azure Stack VMs to Azure
13
8
14
-
This article shows you how to set up disaster recovery Azure Stack VMs to Azure, using the [Azure Site Recovery service](https://docs.microsoft.com/azure/site-recovery/site-recovery-overview).
9
+
This article shows you how to set up disaster recovery Azure Stack VMs to Azure, using the [Azure Site Recovery service](site-recovery-overview.md).
15
10
16
11
Site Recovery contributes to your business continuity and disaster recovery (BCDR) strategy. The service ensures that your VM workloads remain available when expected and unexpected outages occur.
17
12
@@ -39,9 +34,9 @@ With these steps complete, you can then run a full failover to Azure as and when
39
34
40
35
**Location** | **Component** |**Details**
41
36
--- | --- | ---
42
-
**Configuration server** | Runs on a single Azure Stack VM. | In each subscription you set up a configuration server VM. This VM runs the following Site Recovery components:<br/><br/> - Configuration server: Coordinates communications between on-premises and Azure, and manages data replication. - Process server: Acts as a replication gateway. It receives replication data, optimizes with caching, compression, and encryption; and sends it to Azure storage.<br/><br/> If VMs you want to replicate exceed the limits stated below, you can set up a separate standalone process server. [Learn more](https://docs.microsoft.com/azure/site-recovery/vmware-azure-set-up-process-server-scale).
43
-
**Mobility service** | Installed on each VM you want to replicate. | In the steps in this article, we prepare an account so that the Mobility service is installed automatically on a VM when replication is enabled. If you don't want to install the service automatically, there are a number of other methods you can use. [Learn more](https://docs.microsoft.com/azure/site-recovery/vmware-azure-install-mobility-service).
44
-
**Azure** | In Azure you need a Recovery Services vault, a storage account, and a virtual network. | Replicated data is stored in the storage account. Azure VMs are added to the Azure network when failover occurs.
37
+
**Configuration server** | Runs on a single Azure Stack VM. | In each subscription you set up a configuration server VM. This VM runs the following Site Recovery components:<br/><br/> - Configuration server: Coordinates communications between on-premises and Azure, and manages data replication. - Process server: Acts as a replication gateway. It receives replication data, optimizes with caching, compression, and encryption; and sends it to Azure storage.<br/><br/> If VMs you want to replicate exceed the limits stated below, you can set up a separate standalone process server. [Learn more](vmware-azure-set-up-process-server-scale.md).
38
+
**Mobility service** | Installed on each VM you want to replicate. | In the steps in this article, we prepare an account so that the Mobility service is installed automatically on a VM when replication is enabled. If you don't want to install the service automatically, there are a number of other methods you can use. [Learn more](vmware-azure-install-mobility-service.md).
39
+
**Azure** | In Azure you need a Recovery Services vault, a storage account, and a virtual network. | Replicated data is stored in the storage account. Azure VMs are added to the Azure network when failover occurs.
45
40
46
41
47
42
Replication works as follows:
@@ -62,16 +57,16 @@ Here's what you need to set up this scenario.
62
57
**Requirement** | **Details**
63
58
--- | ---
64
59
**Azure subscription account** | If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/pricing/free-trial/).
65
-
**Azure account permissions** | The Azure account you use needs permissions to:<br/><br/> - Create a Recovery Service vault<br/><br/> - Create a virtual machine in the resource group and virtual network you use for the scenario<br/><br/> - Write to the storage account you specify<br/><br/> Note that:<br/><br/> -If you create an account, you're the administrator of your subscription and can perform all actions.<br/><br/> - If you use an existing subscription and you're not the administrator, you need to work with the admin to assign you Owner or Contributor permissions.<br/><br/> - If you need more granular permissions, review [this article](https://docs.microsoft.com/azure/site-recovery/site-recovery-role-based-linked-access-control).
66
-
**Azure Stack VM** | You need an Azure Stack VM in the tenant subscription, that will be deployed as the Site Recovery configuration server.
60
+
**Azure account permissions** | The Azure account you use needs permissions to:<br/><br/> - Create a Recovery Service vault<br/><br/> - Create a virtual machine in the resource group and virtual network you use for the scenario<br/><br/> - Write to the storage account you specify<br/><br/> Note that:<br/><br/> -If you create an account, you're the administrator of your subscription and can perform all actions.<br/><br/> - If you use an existing subscription and you're not the administrator, you need to work with the admin to assign you Owner or Contributor permissions.<br/><br/> - If you need more granular permissions, review [this article](site-recovery-role-based-linked-access-control.md).
61
+
**Azure Stack VM** | You need an Azure Stack VM in the tenant subscription, that will be deployed as the Site Recovery configuration server.
@@ -103,10 +98,10 @@ Every VM you want to replicate must have the Mobility service installed. In orde
103
98
- To do this, run **wf.msc** to open the Windows Firewall console. Right click **Inbound Rules** > **New Rule**. Select **Predefined**, and choose **File and Printer sharing** from the list. Complete the wizard, select to allow the connection > **Finish**.
104
99
- For domain computers, you can use a GPO to do this.
105
100
106
-
101
+
107
102
#### Linux machines
108
103
109
-
- Ensure that there’s network connectivity between the Linux computer and the process server.
104
+
- Ensure that there's network connectivity between the Linux computer and the process server.
110
105
- On the machine for which you enable replication, you need an account that's a root user on the source Linux server:
111
106
- You specify this account when you set up Site Recovery. Then the process server uses this account to install the Mobility service when replication is enabled.
112
107
- This account will only be used by Site Recovery for the push installation, and to update the Mobility service.
@@ -137,7 +132,7 @@ For each machine you want to replicate, find the IP address:
137
132
## Step 2: Create a vault and select a replication goal
138
133
139
134
1. In the Azure portal, select **Create a resource** > **Management Tools** > **Backup and Site Recovery**.
140
-
2. In **Name**, enter a friendly name to identify the vault.
135
+
2. In **Name**, enter a friendly name to identify the vault.
141
136
3. In **Resource group**, create or select a resource group. We're using **contosoRG**.
142
137
4. In **Location**, enter the Azure region. We're using **West Europe**.
143
138
5. To quickly access the vault from the dashboard, select **Pin to dashboard** > **Create**.
@@ -169,22 +164,22 @@ Set up the configuration server machine, register it in the vault, and discover
169
164
5. Download the Site Recovery Unified Setup installation file.
170
165
6. Download the vault registration key. You need the registration key when you run Unified Setup. The key is valid for five days after you generate it.
171
166
172
-

167
+

173
168
174
169
175
170
### Run Azure Site Recovery Unified Setup
176
171
177
172
To install and register the configuration server, do an RDP connection to the VM you want to use for the configuration server, and run Unified Setup.
178
173
179
-
Before you start, make sure that the clock is [synchronized with a time server](https://technet.microsoft.com/windows-server-docs/identity/ad-ds/get-started/windows-time-service/windows-time-service) on the VM before you start. Installation fails if the time is more than five minutes off local time.
174
+
Before you start, make sure that the clock is [synchronized with a time server](/windows-server/networking/windows-time-service/windows-time-service-top) on the VM before you start. Installation fails if the time is more than five minutes off local time.
> The configuration server can also be installed from the command line. [Learn more](physical-manage-configuration-server.md#install-from-the-command-line).
187
-
>
182
+
>
188
183
> It can take 15 minutes or more for the account name to appear in the portal. To update immediately, select **Configuration Servers** > ***server name*** > **Refresh Server**.
189
184
190
185
## Step 4: Set up the target environment
@@ -243,9 +238,9 @@ Make sure you've completed all the tasks in [Step 1: Prepare machine](#step-1-pr
243
238
244
239
> [!NOTE]
245
240
> Site Recovery installs Mobility Service when replication is enabled for a VM.
246
-
>
241
+
>
247
242
> It can take 15 minutes or longer for changes to take effect and appear in the portal.
248
-
>
243
+
>
249
244
> To monitor VMs you add, check the last discovered time for VMs in **Configuration Servers** > **Last Contact At**. To add VMs without waiting for the scheduled discovery, highlight the configuration server (don't select it) and select **Refresh**.
250
245
251
246
@@ -255,16 +250,16 @@ You run a test failover to Azure to make sure that everything's working as expec
255
250
256
251
### Verify machine properties
257
252
258
-
Before you run a test failover, verify the machine properties, and make sure that they comply with [Azure requirements](https://docs.microsoft.com/azure/site-recovery/vmware-physical-azure-support-matrix#azure-vm-requirements). You can view and modify properties as follows:
253
+
Before you run a test failover, verify the machine properties, and make sure that they comply with [Azure requirements](vmware-physical-azure-support-matrix.md#azure-vm-requirements). You can view and modify properties as follows:
259
254
260
255
1. In **Protected Items**, click **Replicated Items** > VM.
261
256
2. In the **Replicated item** pane, there's a summary of VM information, health status, and the latest available recovery points. Click **Properties** to view more details.
262
257
3. In **Compute and Network**, modify settings as needed.
263
258
264
-
- You can modify the Azure VM name, resource group, target size, [availability set](../virtual-machines/windows/tutorial-availability-sets.md), and managed disk settings.
259
+
- You can modify the Azure VM name, resource group, target size, [availability set](/azure/virtual-machines/windows/tutorial-availability-sets), and managed disk settings.
265
260
- You can also view and modify network settings. These include the network/subnet to which the Azure VM is joined after failover, and the IP address that will be assigned to the VM.
266
261
1. In **Disks**, view information about the operating system and data disks on the VM.
267
-
262
+
268
263
269
264
### Run a test failover
270
265
@@ -283,27 +278,27 @@ When you run a test failover, the following happens:
283
278
Run a test failover for a VM as follows:
284
279
285
280
1. In **Settings** > **Replicated Items**, click the VM > **+Test Failover**.
286
-
2. For this walkthrough, we'll select to use the **Latest processed** recovery point.
281
+
2. For this walkthrough, we'll select to use the **Latest processed** recovery point.
287
282
3. In **Test Failover**, select the target Azure network.
288
283
4. Click **OK** to begin the failover.
289
284
5. Track progress by clicking on the VM to open its properties. Or, click the **Test Failover** job in *vault name* > **Settings** > **Jobs** >**Site Recovery jobs**.
290
285
6. After the failover finishes, the replica Azure VM appears in the Azure portal > **Virtual Machines**. Check that the VM is the appropriate size, connected to the right network, and running.
291
-
7. You should now be able to connect to the replicated VM in Azure. [Learn more](https://docs.microsoft.com/azure/site-recovery/site-recovery-test-failover-to-azure#prepare-to-connect-to-azure-vms-after-failover).
286
+
7. You should now be able to connect to the replicated VM in Azure. [Learn more](site-recovery-test-failover-to-azure.md#prepare-to-connect-to-azure-vms-after-failover).
292
287
8. To delete Azure VMs created during the test failover, click **Cleanup test failover** on the VM. In **Notes**, save any observations associated with the test failover.
293
288
294
289
## Fail over and fail back
295
290
296
291
After you've set up replication, and run a drill to make sure everything's working, you can fail machines over to Azure as required.
297
292
298
-
Before you run a failover, if you want to connect to the machine in Azure after the failover, then [prepare to connect](https://docs.microsoft.com/azure/site-recovery/site-recovery-test-failover-to-azure#prepare-to-connect-to-azure-vms-after-failover) before you start.
293
+
Before you run a failover, if you want to connect to the machine in Azure after the failover, then [prepare to connect](site-recovery-test-failover-to-azure.md#prepare-to-connect-to-azure-vms-after-failover) before you start.
299
294
300
295
Then run a failover as follows:
301
296
302
297
303
298
1. In **Settings** > **Replicated Items**, click the machine > **Failover**.
304
299
2. Select the recovery point that you want to use.
305
300
3. In **Test Failover**, select the target Azure network.
306
-
4. Select **Shut down machine before beginning failover**. With this setting, Site Recovery tries to shut down the source machine before starting the failover. However failover continues even if shutdown fails.
301
+
4. Select **Shut down machine before beginning failover**. With this setting, Site Recovery tries to shut down the source machine before starting the failover. However failover continues even if shutdown fails.
307
302
5. Click **OK** to begin the failover. You can follow the failover progress on the **Jobs** page.
308
303
6. After the failover finishes, the replica Azure VM appears in the Azure portal > **Virtual Machines**. If you prepared to connect after failover, check that the VM is the appropriate size, connected to the right network, and running.
309
304
7. After verifying the VM, click **Commit** to finish the failover. This deletes all available recovery points.
@@ -316,18 +311,18 @@ Then run a failover as follows:
316
311
317
312
When your primary site is up and running again, you can fail back from Azure to Azure Stack. To do this, you need to download the Azure VM VHD, and upload it to Azure Stack.
318
313
319
-
1. Shut down the Azure VM, so that the VHD can be downloaded.
314
+
1. Shut down the Azure VM, so that the VHD can be downloaded.
320
315
2. To start downloading the VHD, install [Azure Storage Explorer](https://azure.microsoft.com/features/storage-explorer/).
321
316
3. Navigate to the VM in the Azure Portal (using the VM name).
322
317
4. In **Disks**, click on the disk name, and gather settings.
323
318
324
-
- As an example, the VHD URI used in our test: https://502055westcentralus.blob.core.windows.net/wahv9b8d2ceb284fb59287/copied-3676553984.vhd can be broken down to get the following input parameters that are used to download the VHD.
319
+
- As an example, the VHD URI used in our test: `https://502055westcentralus.blob.core.windows.net/wahv9b8d2ceb284fb59287/copied-3676553984.vhd` can be broken down to get the following input parameters that are used to download the VHD.
325
320
- Storage Account: 502055westcentralus
326
321
- Container: wahv9b8d2ceb284fb59287
327
322
- VHD Name: copied-3676553984.vhd
328
323
329
324
5. Now, use Azure Storage Explorer to download the VHD.
330
-
6. Upload the VHD to Azure Stack with [these steps](https://docs.microsoft.com/azure/azure-stack/user/azure-stack-manage-vm-disks#use-powershell-to-add-multiple-disks-to-a-vm).
325
+
6. Upload the VHD to Azure Stack with [these steps](/azure-stack/user/azure-stack-manage-vm-disks#use-powershell-to-add-multiple-disks-to-a-vm).
331
326
7. In the existing VM or new VM, attach the uploaded VHDs.
332
327
8. Check that the OS Disk is correct, and start the VM.
0 commit comments