Staying up-to-date with the latest software releases is one of the biggest hassles for administrators of the cloud services. Downloading the latest software and performing frequent upgrades is even more cumbersome if downtime is involved in the process.
Azure Site Recovery provides a monthly release with the latest features and enhancements. This means one would need to plan for monthly deployment of the latest updates in order to stay current. To avoid the overhead Microsoft now allows users to choose to allow Site Recovery to manage updates of the components. When disaster recovery is enabled as per the architecture reference, a component known as mobility service agent gets installed on the VM. Once you enable automatic update, the Mobility Service extension gets updated automatically with every new release.
How does automatic update work
Once Site Recovery is configured to manage updates, a global runbook used by Azure services is deployed with an automation account created in the same subscription as the vault. Each vault uses one automation account. The runbook checks then for each VM in a vault and initializes an upgrade of the Mobility Service whenever a newer version is available.
The default setting of the runbook is configured to run daily at 12:00 AM as per the time zone of the replicated virtual machine. Users can modify the runbook schedule via the automation account. Further configuration options are available at the documentation page.
Enable Site Recovery to manage automatic updates
As part of the enable replication step
Users who enable replication for a VM by either starting from the virtual machine view, or from the recovery services vault, get an option to choose to either allow Site Recovery to manage updates for the Site Recovery or to manually manage them.
Toggle the extension update settings inside the vault
- Navigate to Manage -> Site Recovery Infrastructure inside the vault
- Under For Azure virtual Machines -> Extension Update Settings, click the toggle to choose whether you want to allow ASR to manage updates or manage manually. Click Save.
Manage updates manually
1. If there are new updates available for the Mobility Service installed on your Azure VMs, you see a notification that reads “New Site recovery replication agent update is available. Click to install.”
2. Select the notification to open the virtual machine selection page.
3. Select the VMs you want to upgrade Mobility service on, and select OK.
The Update Mobility Service job starts for each of the selected virtual machines.