Proposed Pull Request Change

title description ms.service ms.topic ms.date ms.author author
Upgrade Mobility Service and appliance components - Modernized This article describes about automatic updates for mobility agent and the procedure involved with manual updates - Modernized. azure-site-recovery how-to 12/23/2024 v-gajeronika Jeronika-MS
📄 Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- title: Upgrade Mobility Service and appliance components - Modernized description: This article describes about automatic updates for mobility agent and the procedure involved with manual updates - Modernized. ms.service: azure-site-recovery ms.topic: how-to ms.date: 12/23/2024 ms.author: v-gajeronika author: Jeronika-MS # Customer intent: "As an IT administrator managing mobility service updates, I want to automate mobility agent and appliance component updates, so that I can maintain system performance without needing to handle credentials for upgrades or disrupting ongoing replication." --- # Upgrade Mobility Service and Appliance components (Modernized) From this modernized mobility service and appliance components, you don't need to maintain source machine's Root/Admin credentials for performing upgrades. The credentials are required only for the initial installation of the agent on source machines. Once done, you can remove the credentials and the upgrades would occur automatically. ## Update mobility agent automatically By default, automatic updates are enabled on a vault. Automatic updates are triggered at 12:00 AM local time every day, if a new version is available. > [!NOTE] > If you are using private preview bits, automatic updates are blocked for the protected machines. Ensure that you setup Site Recovery on your machine again, using a fresh Azure Site Recovery replication appliance. To avail the latest features, enhancements, and fixes, we recommend you choose **Allow Site Recovery to manage** option on the **Mobility agent upgrade settings**. Automatic updates don't require a reboot or affect ongoing replication of your virtual machines. Automatic updates also ensure that all the replication appliances in the vault are automatically updated. ![Automatic updates on for Mobility agent](./media/upgrade-mobility-service-modernized/automatic-updates-on.png) To turn off the automatic updates, toggle the **Allow Site Recovery to manage** button. ![Automatic updates off for mobility agent](./media/upgrade-mobility-service-modernized/automatic-updates-off.png) ## Update mobility agent manually If you have turned off automatic updates for your mobility agent, you can update the agent manually using the following procedures: > [!IMPORTANT] > These steps are applicable only when the mobility agent is healthy. ### Upgrade mobility agent on multiple protected items through portal To manually update mobility agent on multiple protected items, follow these steps: 1. Navigate to **Recovery services vault** > **Replicated items** and select *New Site Recovery mobility agent update is available*. Select to install. ![Manual update of mobility agent on multiple protected items](./media/upgrade-mobility-service-modernized/agent-update.png) 2. Choose the source machines to update and then select **OK**. >[!NOTE] >If prerequisites to upgrade Mobility service aren't met, then the virtual machine can't be selected. See information on [how to resolve](#resolve-blocking-issues-for-agent-upgrade). 4. After initiating the upgrade, a Site Recovery job is created in the vault for each upgrade operation and can be tracked by navigating to **Monitoring** > **Site Recovery jobs**. ### Update mobility agent for a single protected machine through portal > [!IMPORTANT] > These steps are applicable only when the mobility agent is healthy. To update mobility agent of a protected item, follow these steps: 1. Navigate to **recovery services vault** > **Replicated items** and select a virtual machine. 2. In virtual machine's **Overview** blade, against **Agent version**, view the current version of the mobility agent. If a new update is available, the status is updated as **New update available**. ![Manual update of mobility agent on a single protected items](./media/upgrade-mobility-service-modernized/agent-version.png) 3. Select **New update available**, latest available version is displayed. Select **Update to this version** to initiate the update job. ![mobility agent update details](./media/upgrade-mobility-service-modernized/agent-update-details.png) > [!NOTE] > If upgrade is blocked, check and resolve the errors as detailed [here](#resolve-blocking-issues-for-agent-upgrade). ### Update mobility agent using command line or when private endpoint is enabled When you enable private endpoints, automatic updates won't be available. You need to manually update mobility agent using command line. To update mobility agent of a protected item, follow these steps: 1. Navigate to **Recovery services vault** > **Replicated items**, and select a virtual machine. 2. In virtual machine's **Overview** blade, under **Agent version**, you can view the current version of the mobility agent. If a new update is available, the status is updated as **New update available**. 3. Confirm the availability of new version, download the latest agent version’s package from [here](./site-recovery-whats-new.md#supported-updates) on the source machine and update the agent version. #### Update mobility agent on Windows machines To update mobility agent on Windows machines, follow these steps: 1. Open command prompt and navigate to the folder where the update package was placed. `cd C:\Azure Site Recovery\Agent` 2. To extract the update package, run the following command: `Microsoft-ASR_UA*Windows*release.exe /q /x:C:\Azure Site Recovery\Agent` 3. To proceed with the update, run the following command: `UnifiedAgent.exe /Role "MS" /Platform VmWare /Silent /InstallationType Upgrade /CSType CSPrime /InstallLocation "C:\Program Files (x86)\Microsoft Azure Site Recovery"` 4. Registration is triggered automatically after the agent has been updated. To manually check the status of registration, run the following command: `"C:\Azure Site Recovery\Agent\agent\UnifiedAgentConfigurator.exe" /SourceConfigFilePath "config.json" /CSType CSPrime` ##### Upgrade settings |Setting|Details| |---|---| |Syntax| `.\UnifiedAgent.exe /Role "MS" /Platform vmware /Silent /InstallationType Upgrade /CSType CSPrime /InstallLocation "C:\Azure Site Recovery\Agent"`| |`/Role`|Mandatory update parameter. </br>Specifies that the Mobility service (MS) is updated.| |`/InstallLocation`|Optional. </br>Specifies the Mobility service installation location.| |`/Platform`|Mandatory. </br>Specifies the platform on which the Mobility service is updated: </br> VMware for VMware virtual machines/physical servers. </br>Azure for Azure VMs. </br></br>If you're treating Azure virtual machines as physical machines, specify VMware.| |`/Silent`|Optional. </br>Specifies whether to run the installer in silent mode.| |`/CSType`|Mandatory. </br>Defines modernized or legacy architecture. (Use CSPrime)| ##### Registration settings |Setting|Details| |---|---| |Syntax|`"<InstallLocation>\UnifiedAgentConfigurator.exe" /SourceConfigFilePath "config.json" /CSType CSPrime >`| |`/SourceConfigFilePath`|Mandatory. </br>Full file path of the Mobility Service configuration file. Use any valid folder.| |`/CSType`|Mandatory. </br>Defines modernized or legacy architecture. (CSPrime or CSLegacy).| #### Update mobility agent on Linux machines To update mobility agent on Linux machines, follow these steps: 1. From a terminal session, copy the update package to a local folder such as `/tmp` on the server for which the agent is being updated and run the following command: `cd /tmp ;` `tar -xvf Microsoft-ASR_UA_version_LinuxVersion_GA_date_release.tar.gz` 2. To update, run the following command: `./install -q -r MS -v VmWare -a Upgrade -c CSPrime` 3. Registration is triggered automatically after the agent has been updated. To manually check the status of registration, run the following command: `<InstallLocation>/Vx/bin/UnifiedAgentConfigurator.sh -c CSPrime -S config.json -q` ##### Installation settings |Setting|Details| |---|---| |Syntax|`./install -q -r MS -v VmWare -a Upgrade -c CSPrime`| |`-r`|Mandatory. </br>Installation parameter. </br>Specifies whether the Mobility service (MS) should be installed.| |`-d`|Optional. </br>Specifies the Mobility service installation location: `/usr/local/ASR`.| |`-v`|Mandatory. </br>Specifies the platform on which Mobility service is installed. </br>VMware for VMware virtual machines/physical servers. </br>Azure for Azure virtual machines.| |`-q`|Optional. </br>Specifies whether to run the installer in silent mode.| |`-c`|Mandatory. </br>Defines modernized or legacy architecture. (CSPrime or CSLegacy).| |`-a`|Mandatory. </br>Specifies that the mobility agent needs to be upgraded and not installed.| ##### Registration settings |Setting|Details| |---|---| |Syntax|`<InstallLocation>/Vx/bin/UnifiedAgentConfigurator.sh -c CSPrime -S config.json -q`| |`-S`|Mandatory. </br>Full file path of the Mobility Service configuration file. Use any valid folder.| |`-c`|Mandatory. </br>Defines modernized or legacy architecture. (CSPrime or CSLegacy).| |`-q`|Optional. </br>Specifies whether to run the installer in silent mode.| ## Mobility agent on latest version After Mobility agent is updated to the latest version or has been updated automatically to the latest version, the status displays as **Up to date**. ### Resolve blocking issues for agent upgrade If prerequisites to upgrade the mobility agent aren't met, then virtual machine can't be updated. Resolve these to proceed with the upgrade. The prerequisite includes, but not limited to: - A pending mandatory reboot on the protected machine. - If the replication appliance is on an incompatible version. - If the replication appliance components – Proxy server or Process server is unable to communicate with Azure services. - If mobility agent on the protected machine isn't able to communicate with the replication appliance. In case any of the above issues are applicable, the status is updated as **Cannot update to latest version**. Select the status to view the reasons blocking the update and recommended actions to fix the issue. >[!NOTE] >After resolving the blocking reasons, wait for 30 minutes to retry the operations. It takes time for the latest information to be updated in the Site Recovery services. ### Mobility agent upgrade job failure In case mobility agent upgrade operation fails (manually triggered or automatic upgrade operation), the job is updated with the reason for failure. Resolve the errors and then retry the operation. To view the failure errors, you can either navigate to Site Recovery jobs and select a specific job to fetch the resolution of errors, or you can use the steps following: 1. Navigate to replicated items section and select a specific virtual machine. 2. In the **Overview** blade, against **Agent version**, the current version of the mobility agent displayed. 3. Next to the current version, the status is updated with the message **Update failed**. Select the status to retry the update operation. 4. A link to the previous upgrade job is available. Select the job to navigate to the specific job. 5. Resolve the previous job errors. Trigger the update operation after resolving the errors from previous failed job. ## Upgrade appliance By default, automatic updates are enabled on the appliance. Automatic updates are triggered at 12:00 AM local time every day, if a new version is available for any of the components. To check the update status of any of the components, navigate to appliance server and open **Microsoft Azure Appliance Configuration Manager**. Navigate to **Appliance components** and expand it to view the list of all the components and their version. If any of these need to be updated, then the **Status** reflects the same. Select the status message to upgrade the component. ![replication appliance components](./media/upgrade-mobility-service-modernized/appliance-components.png) ### Turn off autoupdate 1. On the server running the appliance, open the Registry Editor. 2. Navigate to **HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AzureAppliance**. 3. To turn off autoupdate, create a registry key **AutoUpdate** key with DWORD value of 0. ![Set registry key](./media/upgrade-mobility-service-modernized/registry-key.png) ### Turn on autoupdate You can turn on autoupdate by deleting the AutoUpdate registry key from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AzureAppliance. To delete the registry key: 1. On the server running the appliance, open the Registry Editor. 2. Navigate to **HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AzureAppliance**. 3. Delete the registry key **AutoUpdate** that was previously created to turn off autoupdate. ### Update appliance components manually or when private endpoint is enabled > [!IMPORTANT] > If you're using Windows Server 2016 for your replication appliance, ensure that you have [Microsoft .NET framework 4.7.2](https://support.microsoft.com/topic/microsoft-net-framework-4-7-2-offline-installer-for-windows-05a72734-2127-a15d-50cf-daf56d5faec2) installed on the appliance machine. When you enable private endpoints, automatic updates won't be available. To update all the components of Azure Site Recovery replication appliance, follow these steps: 1. Navigate to this page and check if a new version for the components has been released for a particular version. 2. Download packages of all the versions for which an update is available on the appliance and update all the components. #### Update Process server 1. To update the process server, download the latest version [here](./site-recovery-whats-new.md#supported-updates). 2. Download the update package to the Azure Site Recovery replication appliance. 3. Open command prompt and navigate to the folder where the update package was placed. `cd C:\Downloads` 4. To update the process server, run the following command: `msiexec.exe /i ProcessServer.msi ALLUSERS=1 REINSTALL=ALL REINSTALLMODE=vomus /l*v msi.log` #### Update Recovery Services agent To update the Recovery Service agent, download the latest version [here](./site-recovery-whats-new.md#supported-updates). 1. Download the update package to the Azure Site Recovery replication appliance. 2. Open command prompt and navigate to the folder where the update package was placed. `cd C:\Downloads` 3. To update the Recovery Service agent, run the following command: `MARSAgentInstaller.exe /q /nu for mars agent` #### Update remaining components of appliance 1. To update the remaining components of the Azure Site Recovery replication appliance, download the latest version [here](./site-recovery-whats-new.md#supported-updates). 2. Open the downloaded `.msi` file which, triggers the update automatically. 3. Check the latest version in Windows settings > **Add or remove program**. ### Resolve issues with component upgrade If prerequisites to upgrade any of the components aren't met, then it can't be updated. The reasons/prerequisites include, but not limited to, - If one of the components of the replication appliance is on an incompatible version. - If replication appliance is unable to communicate with Azure services. In case any of the above issues are applicable, the status is updated as **Cannot update to latest version**. Select the status to view the reasons blocking the update and recommended actions to fix the issue. After resolving the blocking reasons, try the update manually.
Success! Branch created successfully. Create Pull Request on GitHub
Error: