Обучение
Пътека за обучение
Migrate Windows Server workloads to Azure - Training
Learn to migrate physical and virtual on-premises Windows Server workloads to Azure.
Този браузър вече не се поддържа.
Надстройте до Microsoft Edge, за да се възползвате от най-новите функции, актуализации на защитата и техническа поддръжка.
When you set up disaster recovery for VMware virtual machines (VM) and physical servers using Azure Site Recovery, you install the Site Recovery Mobility service on each on-premises VMware VM and physical server. The Mobility service captures data, writes on the machine, and forwards them to the Site Recovery process server. The Mobility service is installed by the Mobility service agent software that you can deploy using the following methods:
Бележка
The Mobility service uses approximately 6%-10% of memory on source machines for VMware VMs or physical machines.
If machines that you want to replicate are running antivirus software, exclude the Mobility service's installation folder C:\ProgramData\ASR\agent from antivirus operations. This exclusion ensures that replication works as expected.
Push installation is an integral part of the job that runs from the Azure portal to enable replication. After choosing the set of VMs you wish to protect and enable replication, the configuration server pushes the Mobility service agent to the servers, installs the agent, and completes the agent's registration with the configuration server.
The push installation workflow is described in the following sections:
For more information about version 9.23, see Update Rollup 35 for Azure Site Recovery.
During a push installation of the Mobility service, the following steps are performed:
The agent is pushed to the source machine. Copying the agent to the source machine can fail due to multiple environmental errors. Refer to our guidance to troubleshoot push installation failures.
After the agent is successfully copied to the server, a prerequisite check is performed on the server.
As part of the agent installation, the Volume Shadow Copy Service (VSS) provider for Azure Site Recovery is installed. The VSS provider is used to generate application-consistent recovery points. If installation of the VSS provider fails, this step is skipped and the agent installation continues.
If the agent installation succeeds but the VSS provider installation fails, then the job status is marked as Warning. This doesn't impact crash-consistent recovery point generation.
The agent is pushed to the source machine. Copying the agent to the source machine can fail due to multiple environmental errors. Refer to our guidance to troubleshoot push installation failures.
After the agent is successfully copied to the server, a prerequisite check is performed on the server.
As part of the agent installation, the Volume Shadow Copy Service (VSS) provider for Azure Site Recovery is installed. The VSS provider is used to generate application-consistent recovery points.
Бележка
This section is applicable to Azure Site Recovery - Modernized. Here are the installation instructions for Classic.
Locate the installer files for the server’s operating system using the following steps:
E:\Software\Agents
.C:\Program Files (x86)\Microsoft Azure Site Recovery
.Use the following steps to install the mobility service:
Бележка
If installing the agent version 9.54 and below, then ensure that the section here is followed. For agent version 9.55 and above, the continue to follow the steps below.
Copy the installation file to the location C:\Program Files (x86)\Microsoft Azure Site Recovery, and run it. This launches the installer UI:
Provide the install location in the UI. This should be C:\Program Files (x86)\Microsoft Azure Site Recovery.
Click Install. This starts the installation of Mobility Service. Wait till the installation has been completed.
Once the installation is done, you will need to register the source machine with the appliance of your choice. To do so, copy the string present in the field Machine Details.
This field includes information, which is unique to the source machine. This information is required to generate the Mobility Service configuration file. Learn more about credential less discovery.
Generate the configuration file using the unique source machine identifier. Once done, provide the path of Mobility Service configuration file in the Unified Agent configurator.
Click Register.
This will successfully register your source machine with your appliance.
Бележка
This section is applicable to Azure Site Recovery - Modernized. Here are the installation instructions for Classic.
Open command prompt and navigate to the folder where the installer file has been placed.
cd C:\Program Files (x86)\Microsoft Azure Site Recovery
Run the following command to extract the installer file:
Microsoft-ASR_UA*Windows*release.exe /q /x:"C:\Program Files (x86)\Microsoft Azure Site Recovery"
To proceed with the installation, run the following command:
UnifiedAgentInstaller.exe /Platform vmware /Silent /Role MS /CSType CSPrime /InstallLocation "C:\Program Files (x86)\Microsoft Azure Site Recovery"
Once the installation is complete, copy the string that is generated alongside the parameter Agent Config Input. This string is required to generate the Mobility Service configuration file.
After successfully installing, register the source machine with the above appliance using the following command:
"C:\Program Files (x86)\Microsoft Azure Site Recovery\agent\UnifiedAgentConfigurator.exe" /SourceConfigFilePath "config.json" /CSType CSPrime
Setting | Details |
---|---|
Syntax | .\UnifiedAgentInstaller.exe /Platform vmware /Role MS /CSType CSPrime /InstallLocation <Install Location> |
/Role |
Mandatory installation parameter. Specifies whether the Mobility service (MS) are installed. |
/InstallLocation |
Optional. Specifies the Mobility service installation location (any folder). |
/Platform |
Mandatory. Specifies the platform on which the Mobility service is installed: VMware for VMware VMs/physical servers. Azure for Azure VMs. If you're treating Azure VMs as physical machines, specify VMware. |
/Silent |
Optional. Specifies whether to run the installer in silent mode. |
/CSType |
Optional. Used to define modernized or classic architecture. By default for all agents on or above the version 9.55, modernized architecture would be launched. (CSPrime or CSLegacy) |
Setting | Details |
---|---|
Syntax | "<InstallLocation>\UnifiedAgentConfigurator.exe" /SourceConfigFilePath "config.json" /CSType CSPrime /CredentialLessDiscovery true |
/SourceConfigFilePath |
Mandatory. Full file path of the Mobility Service configuration file. Use any valid folder. |
/CSType |
Optional. Used to define modernized or legacy architecture. By default for all agents on or above the version 9.55, modernized architecture would be launched. (CSPrime or CSLegacy). |
/CredentialLessDiscovery |
Optional. Specifies whether credential-less discovery are performed or not. |
From a terminal session, copy the installer to a local folder such as /tmp on the server that you want to protect. Then run the below command:
cd /tmp ;
tar -xvf Microsoft-ASR_UA_version_LinuxVersion_GA_date_release.tar.gz
To install, use the below command:
sudo ./install -q -r MS -v VmWare -c CSPrime
Once the installation is complete, copy the string that is generated alongside the parameter Agent Config Input. This string is required to generate the Mobility Service configuration file.
After successfully installing, register the source machine with the above appliance using the following command:
<InstallLocation>/Vx/bin/UnifiedAgentConfigurator.sh -S config.json -q -c CSPrime
Setting | Details |
---|---|
Syntax | ./install -q -r MS -v VmWare -c CSPrime |
-r |
Mandatory. Installation parameter. Specifies whether the Mobility service (MS) should be installed. |
-d |
Optional. Specifies the Mobility service installation location: /usr/local/ASR . |
-v |
Mandatory. Specifies the platform on which Mobility service is installed. VMware for VMware VMs/physical servers. Azure for Azure VMs. |
-q |
Optional. Specifies whether to run the installer in silent mode. |
-c |
Optional. Used to define modernized or legacy architecture. By default for all agents on or above the version 9.55, modernized architecture would be launched. (CSPrime or CSLegacy). |
Setting | Details |
---|---|
Syntax | <InstallLocation>/Vx/bin/UnifiedAgentConfigurator.sh -S config.json -q -D true -c CSPrime |
-S |
Mandatory. Full file path of the Mobility Service configuration file. Use any valid folder. |
-c |
Optional. Used to define modernized and legacy architecture. By default for all agents on or above the version 9.55, modernized architecture would be launched. (CSPrime or CSLegacy). |
-q |
Optional. Specifies whether to run the installer in silent mode. |
-D |
Optional. Specifies whether credential-less discovery are performed or not. |
When providing both the machine credentials and the vCenter server or vSphere ESXi host credentials is not possible, then you should opt for credential-less discovery. When performing credential-less discovery, mobility service is installed manually on the source machine and during the installation, the check box for credential-less discovery should be set to true, so that when replication is enabled, no credentials are required.
Use the following steps to generate mobility service configuration file:
Navigate to the appliance with which you want to register your source machine. Open the Microsoft Azure Appliance Configuration Manager and navigate to the section Mobility service configuration details.
Paste the machine details string that you've copied from the Mobility Service and paste it in the input field here. In case you're re-registering the Mobility service, use the following commands to get the machine details string:
cd /usr/local/ASR/Vx/bin/ ./AzureRcmCli --getagentconfiginput
cd "C:\Program Files (x86)\Microsoft Azure Site Recovery\agent"
./AzureRcmCli.exe --getagentconfiginput
Select Download configuration file.
This downloads the Mobility Service configuration file. Copy the downloaded file to a local folder in your source machine. You can place it in the same folder as the Mobility Service installer.
See information about upgrading the mobility services.
Бележка
This section is applicable to Azure Site Recovery - Classic. Here are the Installation instructions for Modernized
Важно
Don't use the UI installation method if you're replicating an Azure Infrastructure as a Service (IaaS) VM from one Azure region to another. Use the command prompt installation.
Open command prompt and navigate to the folder where the installer file has been placed. Extract the installer:
Microsoft-ASR_UA*Windows*release.exe /q /x:'C:\Program Files (x86)\Microsoft Azure Site Recovery'
Run the below command to launch the installation wizard for the agent.
UnifiedAgentInstaller.exe /CSType CSLegacy
In Installation Option, select Install mobility service.
Choose the installation location and select Install.
Monitor the installation in Installation Progress. After the installation is finished, select Proceed to Configuration to register the service with the configuration server.
In Configuration Server Details, specify the IP address and passphrase that you configured. To generate the passphrase, follow the steps mentioned here.
Select Register to finish the registration.
Бележка
This section is applicable to Azure Site Recovery - Classic. Here are the installation instructions for Modernized.
From a command prompt, run the following commands to copy the installer to a local folder, such as C:\Temp, on the server that you want to protect. Replace the installer's file name with the actual file name.
cd C:\Temp
ren Microsoft-ASR_UA*Windows*release.exe MobilityServiceInstaller.exe
MobilityServiceInstaller.exe /q /x:C:\Temp\Extracted
cd C:\Temp\Extracted
Run this command to install the agent.
UnifiedAgent.exe /Role "MS" /InstallLocation "C:\Program Files (x86)\Microsoft Azure Site Recovery" /Platform "VmWare" /Silent /CSType CSLegacy
Run these commands to register the agent with the configuration server.
cd C:\Program Files (x86)\Microsoft Azure Site Recovery\agent
UnifiedAgentConfigurator.exe /CSEndPoint <CSIP> /PassphraseFilePath <PassphraseFilePath>
Setting | Details |
---|---|
Syntax | UnifiedAgent.exe /Role \<MS/MT> /InstallLocation \<Install Location> /Platform "VmWare" /Silent /CSType CSLegacy |
Setup logs | %ProgramData%\ASRSetupLogs\ASRUnifiedAgentInstaller.log |
/Role |
Mandatory installation parameter. Specifies whether the mobility service (MS) or master target (MT) should be installed. |
/InstallLocation |
Optional parameter. Specifies the Mobility service installation location (any folder). |
/Platform |
Mandatory. Specifies the platform on which the Mobility service is installed: VMware for VMware VMs/physical servers. Azure for Azure VMs. If you're treating Azure VMs as physical machines, specify VMware. |
/Silent |
Optional. Specifies whether to run the installer in silent mode. |
/CSType |
Required. Used to define modernized or classic architecture. By default, modernized architecture would be launched. (CSPrime or CSLegacy) |
Setting | Details |
---|---|
Syntax | UnifiedAgentConfigurator.exe /CSEndPoint \<CSIP> /PassphraseFilePath \<PassphraseFilePath> |
Agent configuration logs | %ProgramData%\ASRSetupLogs\ASRUnifiedAgentConfigurator.log |
/CSEndPoint |
Mandatory parameter. <CSIP> specifies the configuration server's IP address. Use any valid IP address. |
/PassphraseFilePath |
Mandatory. Location of the passphrase. Use any valid UNC or local file path. |
From a terminal session, copy the installer to a local folder such as /tmp on the server that you want to protect. Replace the installer's file name with your Linux distribution's actual file name, then run the commands.
cd /tmp ;
tar -xvf Microsoft-ASR_UA_version_LinuxVersion_GA_date_release.tar.gz
Install as follows (root account is not required, but root permissions are required):
sudo ./install -r MS -v VmWare -d <Install Location> -q -c CSLegacy
After the installation is finished, the Mobility service must be registered to the configuration server. Run the following command to register the Mobility service with the configuration server.
/usr/local/ASR/Vx/bin/UnifiedAgentConfigurator.sh -i <CSIP> -P /var/passphrase.txt -c CSLegacy
Setting | Details |
---|---|
Syntax | ./install -r MS -v VmWare [-d <Install Location>] [-q] -c CSLegacy |
-r |
Mandatory installation parameter. Specifies whether the mobility service (MS) or master target (MT) should be installed. |
-d |
Optional parameter. Specifies the Mobility service installation location: /usr/local/ASR . |
-v |
Mandatory. Specifies the platform on which Mobility service is installed. VMware for VMware VMs/physical servers. Azure for Azure VMs. |
-q |
Optional. Specifies whether to run the installer in silent mode. |
-c |
Required. Used to define modernized or classic architecture. By default, modernized architecture would be launched. (CSPrime or CSLegacy) |
Setting | Details |
---|---|
Syntax | cd /usr/local/ASR/Vx/bin UnifiedAgentConfigurator.sh -i \<CSIP> -P \<PassphraseFilePath> -c CSLegacy |
-i |
Mandatory parameter. <CSIP> specifies the configuration server's IP address. Use any valid IP address. |
-P |
Mandatory. Full file path of the file in which the passphrase is saved. Learn more. |
-c |
Required. Used to define modernized or classic architecture. By default, modernized architecture would be launched.(CSPrime or CSLegacy) |
On the configuration server, go to the folder %ProgramData%\ASR\home\svsystems\pushinstallsvc\repository. Check which installer you need based on the operating system. The following table summarizes the installer files for each VMware VM and physical server operating system. Before you begin, you can review the supported operating systems.
Бележка
The file names use the syntax shown in the following table with version and date as placeholders for the real values. The actual file names will look similar to these examples:
Microsoft-ASR_UA_9.30.0.0_Windows_GA_22Oct2019_release.exe
Microsoft-ASR_UA_9.30.0.0_UBUNTU-16.04-64_GA_22Oct2019_release.tar.gz
Installer file | Operating system (64-bit only) |
---|---|
Microsoft-ASR_UA_version_Windows_GA_date_release.exe |
Windows Server 2016 Windows Server 2012 R2 Windows Server 2012 Windows Server 2008 R2 SP1 Windows Server 2019 Windows Server 2022 |
To be downloaded and placed in this folder manually | Red Hat Enterprise Linux (RHEL) 5 |
Microsoft-ASR_UA_version_RHEL6-64_GA_date_release.tar.gz |
Red Hat Enterprise Linux (RHEL) 6 |
Microsoft-ASR_UA_version_RHEL7-64_GA_date_release.tar.gz |
Red Hat Enterprise Linux (RHEL) 7 |
Microsoft-ASR_UA_version_RHEL8-64_GA_date_release.tar.gz |
Red Hat Enterprise Linux (RHEL) 8 |
Microsoft-ASR_UA_version_SLES12-64_GA_date_release.tar.gz |
SUSE Linux Enterprise Server 12 SP1 Includes SP2 and SP3. |
To be downloaded and placed in this folder manually | SUSE Linux Enterprise Server 11 SP3 |
To be downloaded and placed in this folder manually | SUSE Linux Enterprise Server 11 SP4 |
Microsoft-ASR_UA_version_SLES15-64_GA_date_release.tar.gz |
SUSE Linux Enterprise Server 15 |
Microsoft-ASR_UA_version_OL6-64_GA_date_release.tar.gz |
Oracle Enterprise Linux 6.4 Oracle Enterprise Linux 6.5 |
Microsoft-ASR_UA_version_OL7-64_GA_date_release.tar.gz |
Oracle Enterprise Linux 7 |
Microsoft-ASR_UA_version_OL8-64_GA_date_release.tar.gz |
Oracle Enterprise Linux 8 |
To be downloaded and placed in this folder manually | Ubuntu Linux 14.04 |
Microsoft-ASR_UA_version_UBUNTU-16.04-64_GA_date_release.tar.gz |
Ubuntu Linux 16.04 LTS server |
Microsoft-ASR_UA_version_UBUNTU-18.04-64_GA_date_release.tar.gz |
Ubuntu Linux 18.04 LTS server |
Microsoft-ASR_UA_version_UBUNTU-20.04-64_GA_date_release.tar.gz |
Ubuntu Linux 20.04 LTS server |
To be downloaded and placed in this folder manually | Debian 7 |
To be downloaded and placed in this folder manually | Debian 8 |
To be downloaded and placed in this folder manually | Debian 9 |
As a prerequisite to update or protect SUSE Linux Enterprise Server 11 SP3 or SUSE 11 SP4 machines from 9.36 version onwards:
As a prerequisite to update or protect RHEL 5 machines from 9.36 version onwards:
As a prerequisite to update or protect Debian 7, Debian 8 or Debian 9 machines:
As a prerequisite to update or protect Ubuntu 14.04 machines from 9.42 version onwards:
Обучение
Пътека за обучение
Migrate Windows Server workloads to Azure - Training
Learn to migrate physical and virtual on-premises Windows Server workloads to Azure.