快速入門:設定 Azure VM 到次要 Azure 區域的災害復原Quickstart: Set up disaster recovery to a secondary Azure region for an Azure VM

Azure Site Recovery 服務藉由確保您的商務應用程式可在計劃性與非計劃性中斷期間持續運作,來提供商務持續性和災害復原 (BCDR) 策略。The Azure Site Recovery service contributes to your business continuity and disaster recovery (BCDR) strategy by keeping your business applications online during planned and unplanned outages. Site Recovery 會管理並協調內部部署機器和 Azure 虛擬機器 (VM) 的災害復原,包括複寫、容錯移轉和復原。Site Recovery manages and orchestrates disaster recovery of on-premises machines and Azure virtual machines (VM), including replication, failover, and recovery.

本快速入門將說明如何藉由將 Azure VM 複寫至次要 Azure 區域,來設定災害復原。This quickstart describes how to set up disaster recovery for an Azure VM by replicating it to a secondary Azure region. 一般來說,預設設定會用來啟用複寫。In general, default settings are used to enable replication.

PrerequisitesPrerequisites

若要完成此教學課程,您需要 Azure 訂用帳戶與 VM。To complete this tutorial, you need an Azure subscription and a VM.

  • 如果您沒有包含作用中訂用帳戶的 Azure 帳戶,可以建立免費帳戶If you don't have an Azure account with an active subscription, you can create an account for free.
  • 建議 VM 至少要有 1 GB 的 RAM。A VM with a minimum 1 GB of RAM is recommended. 深入了解如何建立 VM。Learn more about how to create a VM.

登入 AzureSign in to Azure

登入 Azure 入口網站Sign in to the Azure portal.

啟用 Azure VM 的複寫Enable replication for the Azure VM

下列步驟可讓您將 VM 複寫至次要位置。The following steps enable VM replication to a secondary location.

  1. 在 Azure 入口網站的 [首頁] > [虛擬機器] 功能表中,選取要複寫的 VM。On the Azure portal, from Home > Virtual machines menu, select a VM to replicate.

  2. 在 [作業] 中,選取 [災害復原] 。In Operations select Disaster recovery.

  3. 從 [基本資料] > [目的地區域] 中,選取目的地區域。From Basics > Target region, select the target region.

  4. 若要檢視複寫設定,請選取 [檢閱 + 開始複寫] 。To view the replication settings, select Review + Start replication. 如果您需要變更任何預設值,請選取 [進階設定] 。If you need to change any defaults, select Advanced settings.

  5. 若要啟動可啟用 VM 複寫的作業,請選取 [啟動複寫] 。To start the job that enables VM replication select Start replication.

    啟用複寫。

確認設定Verify settings

在複寫作業完成之後,您可以檢查複寫狀態、修改複寫設定,以及測試部署。After the replication job finishes, you can check the replication status, modify replication settings, and test the deployment.

  1. 在 Azure 入口網站的功能表中,選取 [虛擬機器] ,然後選取您已複寫的 VM。On the Azure portal menu, select Virtual machines and select the VM that you replicated.

  2. 在 [作業] 中,選取 [災害復原] 。In Operations select Disaster recovery.

  3. 若要從 [概觀] 中檢視複寫詳細資料,請選取 [基本資訊] 。To view the replication details from the Overview select Essentials. 如需詳細資訊,請參閱健康情況和狀態容錯移轉整備基礎結構檢視對應項目。More details are shown in the Health and status, Failover readiness, and the Infrastructure view map.

    複寫狀態。

清除資源Clean up resources

若要停止複寫主要區域中的 VM,您必須停用複寫:To stop replication of the VM in the primary region, you must disable replication:

  • 來源複寫設定會自動清除。The source replication settings are cleaned up automatically.
  • 在複寫期間安裝在 VM 上的 Site Recovery 擴充功能不會遭到移除。The Site Recovery extension installed on the VM during replication isn't removed.
  • VM 的 Site Recovery 計費會停止。Site Recovery billing for the VM stops.

若要停用複寫,請執行下列步驟:To disable replication, do these steps:

  1. 在 Azure 入口網站的功能表中,選取 [虛擬機器] ,然後選取您已複寫的 VM。On the Azure portal menu, select Virtual machines and select the VM that you replicated.

  2. 在 [作業] 中,選取 [災害復原] 。In Operations select Disaster recovery.

  3. 從 [概觀] 中選取 [停用複寫] 。From the Overview, select Disable Replication.

  4. 若要卸載 Site Recovery 擴充模組,請移至 VM 的 [設定] > [擴充功能] 。To uninstall the Site Recovery extension, go to the VM's Settings > Extensions.

    停用複寫。

後續步驟Next steps

本快速入門中,您以將單一 VM 複寫到次要區域。In this quickstart, you replicated a single VM to a secondary region. 接下來,請為多個 Azure VM 設定複寫。Next, set up replication for multiple Azure VMs.