Azure 虚拟机上的 SQL Server Always On 可用性组简介Introducing SQL Server Always On availability groups on Azure Virtual Machines

适用于: Azure VM 上的 SQL Server

本文介绍 Azure 虚拟机上的 SQL Server 可用性组。This article introduces SQL Server availability groups on Azure Virtual Machines.

Azure 虚拟机上的 AlwaysOn 可用性组类似于本地的 AlwaysOn 可用性组。Always On availability groups on Azure Virtual Machines are similar to Always On availability groups on premises. 有关详细信息,请参阅 Always On 可用性组 (SQL Server)For more information, see Always On Availability Groups (SQL Server).

下图阐述了 Azure 虚拟机中完整 SQL Server 可用性组的各个部分。The following diagram illustrates the parts of a complete SQL Server Availability Group in Azure Virtual Machines.

可用性组

Azure 虚拟机中可用性组的主要区别是这些虚拟机 (VM) 需要负载均衡器The key difference for an Availability Group on Azure Virtual Machines is that these virtual machines (VMs) require a load balancer. 负载均衡器保存可用性组侦听器的 IP 地址。The load balancer holds the IP addresses for the availability group listener. 如果有多个可用性组,则每个组都需要一个侦听程序。If you have more than one availability group, each group requires a listener. 一个负载均衡器可以支持多个侦听器。One load balancer can support multiple listeners.

此外,在 Azure IaaS VM 来宾故障转移群集上,我们建议每个服务器(群集节点)使用一个 NIC 和一个子网。Additionally, on an Azure IaaS VM guest failover cluster, we recommend a single NIC per server (cluster node) and a single subnet. Azure 网络具有物理冗余,这使得在 Azure IaaS VM 来宾群集上不需要额外的 NIC 和子网。Azure networking has physical redundancy, which makes additional NICs and subnets unnecessary on an Azure IaaS VM guest cluster. 虽然群集验证报告将发出警告,指出节点只能在单个网络上访问,但在 Azure IaaS VM 来宾故障转移群集上可以安全地忽略此警告。Although the cluster validation report will issue a warning that the nodes are only reachable on a single network, this warning can be safely ignored on Azure IaaS VM guest failover clusters.

若要增加冗余和高可用性,SQL Server VM 应位于相同的可用性集中。To increase redundancy and high availability, the SQL Server VMs should either be in the same availability set.

Windows Server 版本Windows Server Version SQL Server 版本SQL Server Version SQL Server 版本SQL Server Edition WSFC 仲裁配置WSFC Quorum Config 使用多区域进行灾难恢复DR with Multi-region 多子网支持Multi-subnet support 支持现有 ADSupport for an existing AD 使用具有多个区域的相同区域进行灾难恢复DR with multi-zone same region Dist-AG 支持,没有 AD 域Dist-AG support with no AD domain Dist-AG 支持,没有群集Dist-AG support with no cluster
手动Manual 全部All 全部All 全部All 全部All Yes Yes Yes Yes Yes Yes
                     

准备好在 Azure 虚拟机上生成 SQL Server 可用性组时,请参阅这些教程。When you are ready to build a SQL Server availability group on Azure Virtual Machines, refer to these tutorials.

在 Azure 门户中手动操作Manually in the Azure portal

还可以自行创建虚拟机,不需模板。You can also create the virtual machines yourself without the template. 首先完成先决条件,然后创建可用性组。First, complete the prerequisites, then create the availability group. 请参阅以下主题:See the following topics:

后续步骤Next steps

在位于不同区域的 Azure 虚拟机上配置 SQL Server AlwaysOn 可用性组Configure a SQL Server Always On Availability Group on Azure Virtual Machines in Different Regions