Simplify Azure SQL Virtual Machines HA and DR configuration by adopting multi subnet approach

Published Nov 10 2021 07:00 AM 2,383 Views
Microsoft

SQL Server on Azure Virtual Machines is the best option to migrate your SQL Server workloads maintaining complete SQL Server compatibility and operating system level access. It is ideal destination for lift and shift or rehost migration approach. At the outset, High Availability (HA) & Disaster Recovery (DR) technologies for Azure SQL VMs are no different than on-premises world with following options:

  1. Always on Availability Groups (AG)
  2. Always On Failover Cluster Instances (FCI)
  3. Log Shipping
  4. Backup & Restore
  5. Azure Site Recovery (Azure only)

Choosing an HA & DR technology for the database depends on the application’s business requirements for Recovery Time Objective (RTO) and Recovery Point Objective (RPO).

While it’s the same SQL Server running on Azure virtual machines, there are some Azure infrastructure specific nuances when configuring HA & DR. Currently, for AG listener and FCI there is a dependency on Azure Load Balancer to get floating IP functionality within a single subnet, due to lack of Address Resolution Protocol (ARP) in public cloud. We do understand that Azure Load Balancer does introduce additional management and operational overhead for connecting to AG listener and FCI. Azure Load Balancer also induces failover latency of 10 seconds for the load balancing probe (2 unhealthy threshold at 5 second interval being the minimum) to detect the new SQL Server primary. To address this challenge, we did release an alternative way of using Distributed Network Name (DNN) for AG listener and FCI that avoids the need of having Azure Load Balancer. But DNN does come with following limitations:

  • Works only on SQL Server versions starting with either SQL Server 2019 CU8 and later, SQL Server 2017 CU25 and later, or SQL Server 2016 SP3 and later on Windows Server 2016 and later.
  • DNN AG listener MUST be configured with a unique port. The port cannot be shared with any other connection on any replica.
  • DNN AG listener cannot use SQL Server default port of 1433
  • There are additional considerations when using DNN with AG.
  • In case of FCI, even after creating DNN the original virtual network name (VNN) and virtual IP cannot be deleted as they are necessary components of the FCI infrastructure. In addition, there is another step needed to prevent the VNN virtual IP address from being assigned to another resource in Azure as a duplicate.
  • There are additional considerations when using DNN with FCI.

Now, you can simplify Azure SQL VM HA & DR configuration by deploying VMs in multiple subnets and thus eliminate the need for an Azure Load Balancer. Multi subnet configuration helps to match on-premises experience for connecting to your AG listener or FCI. Multi subnet configuration works natively on all supported versions of SQL Server & Windows Server simplifying deployment, maintenance and improving failover time and is Generally Available (GA).

Here's a reference architecture for typical AG with two replicas SQL-VM-1 and SQL-VM-2 in two separate subnets SQL-Subnet-1 and SQL-Subnet-2 respectively thus achieving multi subnet configuration.

RajeshSetlem_0-1635183701833.png

Figure 1: Typical multi subnet AG configuration with two replicas.

 

In multi subnet configuration each AG replica or FCI node will be in separate subnet. These subnets can be

  • Within a virtual network in one region (Typical HA scenario)
  • In different virtual network across Azure regions (Typical DR scenario)

Prerequisite for multi subnet approach is Secondary IP and having MultiSubnetFailover=True in connection string. By using Secondary IP, Windows Server Failover Cluster and SQL Server leverages OR Dependency for cluster IP and AG Listener IP/ FCI virtual IP as shown below thus completing eliminating the need for Azure Load Balancer.

 

RajeshSetlem_1-1635183701838.png

Figure 2: Windows Server 2016 Failover Cluster leveraging OR Dependency between secondary IPs.

 

RajeshSetlem_2-1635183701843.png

Figure 3: AG listener cluster resource leveraging OR Dependency between secondary IPs.

 

RajeshSetlem_3-1635183701846.png

Figure 4: AG listener in SSMS is mapped to the two secondary IPs.

 

RajeshSetlem_4-1635183701850.png

Figure 5: SQL Server FCI Virtual Network Name (VNN) leveraging OR Dependency between secondary IPs.

 

Here’s a table showing various approaches for Azure SQL VM HA & DR configuration and multi subnet is highly recommended as it offers simplicity without any limitations and failover latency.

RajeshSetlem_6-1635184251891.png

 

To summarize, multi subnet configuration greatly simplifies HA and DR for Azure SQL VMs, and we hope you take advantage of it. Review following articles for detailed step by step guidance of setting up AG and FCI.

Tutorial: Prerequisites for AG in multiple subnets - SQL Server on Azure VM | Microsoft Docs

Tutorial: Configure availability group in multiple subnets - SQL Server on Azure VM | Microsoft Docs

Prepare virtual machines for an FCI - SQL Server on Azure VM | Microsoft Docs

Create an FCI with Azure shared disks - SQL Server on Azure VM | Microsoft Docs

 

 

Frequently asked questions reg secondary IP and multi subnet configuration

  1. How many secondary IPs are needed for an AG listener?
    To create an AG listener, you need a dedicated secondary IP per each replica VM.
  2. Is there a limit for number of secondary IPs?
    Yes, there is a limit on the number of private IPs - 256 private IPs per NIC, 256 private IPs per VM.
  3. Is assigning and un assigning secondary IP to a VM NIC an online operation with no impact to VM?
    Yes, secondary IP Assignment has no impact on the VM.
  4. Is there any perf impact to VM’s network traffic when multiple secondary private IPs are assigned?
    No. The total VM bandwidth is shared among all the IP addresses.
  5. Any implication of VM size (VM series) and resize (VM scale up and scale down) on secondary IP?
    None
  6. How does public IP for secondary IP work?
    You can assign a public IP for any private IP on the NIC, however, traffic usually goes outbound from the primary Public IP: Multiple IP addresses for Azure virtual machines - Portal | Microsoft Docs
  7. Can public IP for secondary IP be used for AG listener or FCI to enable connectivity to SQL Server originating from internet?
    Yes, this is just like any other public IP
  8. Any orthogonality issue with other networking features like Accelerated Networking, VNET peering in same/different region, Express Route, Inter VM traffic in multi subnet etc.?
    None
  9. Is there any cost associated with secondary IP?
    Not with private IP but with Public IP Pricing - Virtual Machine IP Address Options | Microsoft Azure
  10. Are the secondary IPs used for cluster and AG listener/FCI reserved?
    Yes, when a secondary IP configuration is saved then the IP is reserved and won’t be assigned to any other VM/device.
%3CLINGO-SUB%20id%3D%22lingo-sub-2882897%22%20slang%3D%22en-US%22%3ESimplify%20Azure%20SQL%20Virtual%20Machines%20HA%20and%20DR%20configuration%20by%20adopting%20multi%20subnet%20approach%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2882897%22%20slang%3D%22en-US%22%3E%3CP%3ESQL%20Server%20on%20Azure%20Virtual%20Machines%20is%20the%20best%20option%20to%20migrate%20your%20SQL%20Server%20workloads%20maintaining%20complete%20SQL%20Server%20compatibility%20and%20operating%20system%20level%20access.%20It%20is%20ideal%20destination%20for%20lift%20and%20shift%20or%20rehost%20migration%20approach.%20At%20the%20outset%2C%20High%20Availability%20(HA)%20%26amp%3B%20Disaster%20Recovery%20(DR)%20technologies%20for%20Azure%20SQL%20VMs%20are%20no%20different%20than%20on-premises%20world%20with%20following%20options%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EAlways%20on%20Availability%20Groups%20(AG)%3C%2FLI%3E%0A%3CLI%3EAlways%20On%20Failover%20Cluster%20Instances%20(FCI)%3C%2FLI%3E%0A%3CLI%3ELog%20Shipping%3C%2FLI%3E%0A%3CLI%3EBackup%20%26amp%3B%20Restore%3C%2FLI%3E%0A%3CLI%3EAzure%20Site%20Recovery%20(Azure%20only)%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EChoosing%20an%20HA%20%26amp%3B%20DR%20technology%20for%20the%20database%20depends%20on%20the%20application%E2%80%99s%20business%20requirements%20for%20Recovery%20Time%20Objective%20(RTO)%20and%20Recovery%20Point%20Objective%20(RPO).%3C%2FP%3E%0A%3CP%3EWhile%20it%E2%80%99s%20the%20same%20SQL%20Server%20running%20on%20Azure%20virtual%20machines%2C%20there%20are%20some%20Azure%20infrastructure%20specific%20nuances%20when%20configuring%20HA%20%26amp%3B%20DR.%20Currently%2C%20for%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fvirtual-machines%2Fwindows%2Favailability-group-vnn-azure-load-balancer-configure%3Ftabs%3Dilb%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAG%20listener%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fvirtual-machines%2Fwindows%2Ffailover-cluster-instance-vnn-azure-load-balancer-configure%3Ftabs%3Dilb%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EFCI%3C%2FA%3E%20there%20is%20a%20dependency%20on%20Azure%20Load%20Balancer%20to%20get%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fload-balancer%2Fload-balancer-floating-ip%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Efloating%20IP%3C%2FA%3E%20functionality%20within%20a%20single%20subnet%2C%20due%20to%20lack%20of%20%3CA%20href%3D%22https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FAddress_Resolution_Protocol%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EAddress%20Resolution%20Protocol%20(ARP)%3C%2FA%3E%20in%20public%20cloud.%20We%20do%20understand%20that%20Azure%20Load%20Balancer%20does%20introduce%20additional%20management%20and%20operational%20overhead%20for%20connecting%20to%20AG%20listener%20and%20FCI.%20Azure%20Load%20Balancer%20also%20induces%20failover%20latency%20of%2010%20seconds%20for%20the%20load%20balancing%20probe%20(2%20unhealthy%20threshold%20at%205%20second%20interval%20being%20the%20minimum)%20to%20detect%20the%20new%20SQL%20Server%20primary.%20To%20address%20this%20challenge%2C%20we%20did%20release%20an%20alternative%20way%20of%20using%20Distributed%20Network%20Name%20(DNN)%20for%20AG%20listener%20and%20FCI%20that%20avoids%20the%20need%20of%20having%20Azure%20Load%20Balancer.%20But%20DNN%20does%20come%20with%20following%20limitations%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EWorks%20only%20on%20SQL%20Server%20versions%20starting%20with%20either%20SQL%20Server%202019%20CU8%20and%20later%2C%20SQL%20Server%202017%20CU25%20and%20later%2C%20or%20SQL%20Server%202016%20SP3%20and%20later%20on%20Windows%20Server%202016%20and%20later.%3C%2FLI%3E%0A%3CLI%3EDNN%20AG%20listener%20MUST%20be%20configured%20with%20a%20unique%20port.%20The%20port%20cannot%20be%20shared%20with%20any%20other%20connection%20on%20any%20replica.%3C%2FLI%3E%0A%3CLI%3EDNN%20AG%20listener%20cannot%20use%20SQL%20Server%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fvirtual-machines%2Fwindows%2Favailability-group-distributed-network-name-dnn-listener-configure%23port-considerations%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Edefault%20port%20of%201433%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EThere%20are%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fvirtual-machines%2Fwindows%2Favailability-group-dnn-interoperability%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eadditional%20considerations%3C%2FA%3E%20when%20using%20DNN%20with%20AG.%3C%2FLI%3E%0A%3CLI%3EIn%20case%20of%20FCI%2C%20even%20after%20creating%20DNN%20the%20original%20virtual%20network%20name%20(VNN)%20and%20virtual%20IP%20cannot%20be%20deleted%20as%20they%20are%20necessary%20components%20of%20the%20FCI%20infrastructure.%20In%20addition%2C%20there%20is%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fvirtual-machines%2Fwindows%2Ffailover-cluster-instance-distributed-network-name-dnn-configure%23avoid-ip-conflict%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eanother%20step%3C%2FA%3E%20needed%20to%20prevent%20the%20VNN%20virtual%20IP%20address%20from%20being%20assigned%20to%20another%20resource%20in%20Azure%20as%20a%20duplicate.%3C%2FLI%3E%0A%3CLI%3EThere%20are%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fvirtual-machines%2Fwindows%2Ffailover-cluster-instance-dnn-interoperability%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eadditional%20considerations%3C%2FA%3E%20when%20using%20DNN%20with%20FCI.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ENow%2C%20you%20can%20simplify%20Azure%20SQL%20VM%20HA%20%26amp%3B%20DR%20configuration%20by%20deploying%20VMs%20in%20multiple%20subnets%20and%20thus%20eliminate%20the%20need%20for%20an%20Azure%20Load%20Balancer.%20Multi%20subnet%20configuration%20helps%20to%20match%20on-premises%20experience%20for%20connecting%20to%20your%20AG%20listener%20or%20FCI.%20Multi%20subnet%20configuration%20works%20natively%20on%20all%20supported%20versions%20of%20SQL%20Server%20%26amp%3B%20Windows%20Server%20simplifying%20deployment%2C%20maintenance%20and%20improving%20failover%20time%20and%20is%20Generally%20Available%20(GA).%3C%2FP%3E%0A%3CP%3EHere's%20a%20reference%20architecture%20for%20typical%20AG%20with%20two%20replicas%20%3CEM%3ESQL-VM-1%3C%2FEM%3E%20and%20%3CEM%3ESQL-VM-2%3C%2FEM%3E%20in%20two%20separate%20subnets%20%3CEM%3ESQL-Subnet-1%3C%2FEM%3E%20and%20%3CEM%3ESQL-Subnet-2%3C%2FEM%3E%20respectively%20thus%20achieving%20multi%20subnet%20configuration.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22RajeshSetlem_0-1635183701833.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319807i79D6F041DBC4B5CB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22RajeshSetlem_0-1635183701833.png%22%20alt%3D%22RajeshSetlem_0-1635183701833.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EFigure%201%3A%20Typical%20multi%20subnet%20AG%20configuration%20with%20two%20replicas.%20%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20multi%20subnet%20configuration%20each%20AG%20replica%20or%20FCI%20node%20will%20be%20in%20separate%20subnet.%20These%20subnets%20can%20be%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EWithin%20a%20virtual%20network%20in%20one%20region%20(Typical%20HA%20scenario)%3C%2FLI%3E%0A%3CLI%3EIn%20different%20virtual%20network%20across%20Azure%20regions%20(Typical%20DR%20scenario)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EPrerequisite%20for%20multi%20subnet%20approach%20is%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fip-services%2Fvirtual-network-network-interface-addresses%23secondary%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESecondary%20IP%3C%2FA%3E%20and%20having%20MultiSubnetFailover%3DTrue%20in%20connection%20string.%20By%20using%20Secondary%20IP%2C%20Windows%20Server%20Failover%20Cluster%20and%20SQL%20Server%20leverages%20OR%20Dependency%20for%20cluster%20IP%20and%20AG%20Listener%20IP%2F%20FCI%20virtual%20IP%20as%20shown%20below%20thus%20completing%20eliminating%20the%20need%20for%20Azure%20Load%20Balancer.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22RajeshSetlem_1-1635183701838.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319808iCE59AEE060FA0D07%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22RajeshSetlem_1-1635183701838.png%22%20alt%3D%22RajeshSetlem_1-1635183701838.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EFigure%202%3A%20Windows%20Server%202016%20Failover%20Cluster%20leveraging%20OR%20Dependency%20between%20secondary%20IPs.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22RajeshSetlem_2-1635183701843.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319809iA913DE995129453D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22RajeshSetlem_2-1635183701843.png%22%20alt%3D%22RajeshSetlem_2-1635183701843.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EFigure%203%3A%20AG%20listener%20cluster%20resource%20leveraging%20OR%20Dependency%20between%20secondary%20IPs.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22RajeshSetlem_3-1635183701846.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319810i7635B02F730F5C78%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22RajeshSetlem_3-1635183701846.png%22%20alt%3D%22RajeshSetlem_3-1635183701846.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EFigure%204%3A%20AG%20listener%20in%20SSMS%20is%20mapped%20to%20the%20two%20secondary%20IPs.%20%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22RajeshSetlem_4-1635183701850.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319811i57E05703805821CA%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22RajeshSetlem_4-1635183701850.png%22%20alt%3D%22RajeshSetlem_4-1635183701850.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EFigure%205%3A%20SQL%20Server%20FCI%20Virtual%20Network%20Name%20(VNN)%20leveraging%20OR%20Dependency%20between%20secondary%20IPs.%20%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%E2%80%99s%20a%20table%20showing%20various%20approaches%20for%20Azure%20SQL%20VM%20HA%20%26amp%3B%20DR%20configuration%20and%20multi%20subnet%20is%20highly%20recommended%20as%20it%20offers%20simplicity%20without%20any%20limitations%20and%20failover%20latency.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22RajeshSetlem_6-1635184251891.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319818iD07BE4D743A9EB28%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22RajeshSetlem_6-1635184251891.png%22%20alt%3D%22RajeshSetlem_6-1635184251891.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20summarize%2C%20multi%20subnet%20configuration%20greatly%20simplifies%20HA%20and%20DR%20for%20Azure%20SQL%20VMs%2C%20and%20we%20hope%20you%20take%20advantage%20of%20it.%20Review%20following%20articles%20for%20detailed%20step%20by%20step%20guidance%20of%20setting%20up%20AG%20and%20FCI.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fvirtual-machines%2Fwindows%2Favailability-group-manually-configure-prerequisites-tutorial-multi-subnet%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETutorial%3A%20Prerequisites%20for%20AG%20in%20multiple%20subnets%20-%20SQL%20Server%20on%20Azure%20VM%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fvirtual-machines%2Fwindows%2Favailability-group-manually-configure-tutorial-multi-subnet%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETutorial%3A%20Configure%20availability%20group%20in%20multiple%20subnets%20-%20SQL%20Server%20on%20Azure%20VM%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fvirtual-machines%2Fwindows%2Ffailover-cluster-instance-prepare-vm%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPrepare%20virtual%20machines%20for%20an%20FCI%20-%20SQL%20Server%20on%20Azure%20VM%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fvirtual-machines%2Fwindows%2Ffailover-cluster-instance-azure-shared-disks-manually-configure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECreate%20an%20FCI%20with%20Azure%20shared%20disks%20-%20SQL%20Server%20on%20Azure%20VM%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%3CDIV%20class%3D%22video-embed-center%20video-embed%22%3E%3CIFRAME%20class%3D%22embedly-embed%22%20src%3D%22https%3A%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252F8jWntyzBkXU%253Ffeature%253Doembed%26amp%3Bdisplay_name%3DYouTube%26amp%3Burl%3Dhttps%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253D8jWntyzBkXU%26amp%3Bimage%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252F8jWntyzBkXU%252Fhqdefault.jpg%26amp%3Bkey%3Dfad07bfa4bd747d3bdea27e17b533c0e%26amp%3Btype%3Dtext%252Fhtml%26amp%3Bschema%3Dyoutube%22%20width%3D%22600%22%20height%3D%22337%22%20scrolling%3D%22no%22%20title%3D%22YouTube%20embed%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%22%20allowfullscreen%3D%22true%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EFrequently%20asked%20questions%20reg%20secondary%20IP%20and%20multi%20subnet%20configuration%3C%2FSTRONG%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EHow%20many%20secondary%20IPs%20are%20needed%20for%20an%20AG%20listener%3F%3CBR%20%2F%3ETo%20create%20an%20AG%20listener%2C%20you%20need%20a%20dedicated%20secondary%20IP%20per%20each%20replica%20VM.%3C%2FLI%3E%0A%3CLI%3EIs%20there%20a%20limit%20for%20number%20of%20secondary%20IPs%3F%3CBR%20%2F%3EYes%2C%20there%20is%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Fmanagement%2Fazure-subscription-service-limits%3Ftoc%3D%2Fazure%2Fvirtual-network%2Ftoc.json%23azure-resource-manager-virtual-networking-limits%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Elimit%20on%20the%20number%20of%20private%20IPs%3C%2FA%3E%20-%20256%20private%20IPs%20per%20NIC%2C%20256%20private%20IPs%20per%20VM.%3C%2FLI%3E%0A%3CLI%3EIs%20assigning%20and%20un%20assigning%20secondary%20IP%20to%20a%20VM%20NIC%20an%20online%20operation%20with%20no%20impact%20to%20VM%3F%20%3CBR%20%2F%3EYes%2C%20secondary%20IP%20Assignment%20has%20no%20impact%20on%20the%20VM.%3C%2FLI%3E%0A%3CLI%3EIs%20there%20any%20perf%20impact%20to%20VM%E2%80%99s%20network%20traffic%20when%20multiple%20secondary%20private%20IPs%20are%20assigned%3F%3CBR%20%2F%3ENo.%20The%20total%20VM%20bandwidth%20is%20shared%20among%20all%20the%20IP%20addresses.%3C%2FLI%3E%0A%3CLI%3EAny%20implication%20of%20VM%20size%20(VM%20series)%20and%20resize%20(VM%20scale%20up%20and%20scale%20down)%20on%20secondary%20IP%3F%20%3CBR%20%2F%3ENone%3C%2FLI%3E%0A%3CLI%3EHow%20does%20public%20IP%20for%20secondary%20IP%20work%3F%20%3CBR%20%2F%3EYou%20can%20assign%20a%20public%20IP%20for%20any%20private%20IP%20on%20the%20NIC%2C%20however%2C%20traffic%20usually%20goes%20outbound%20from%20the%20primary%20Public%20IP%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fvirtual-network-multiple-ip-addresses-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMultiple%20IP%20addresses%20for%20Azure%20virtual%20machines%20-%20Portal%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3ECan%20public%20IP%20for%20secondary%20IP%20be%20used%20for%20AG%20listener%20or%20FCI%20to%20enable%20connectivity%20to%20SQL%20Server%20originating%20from%20internet%3F%20%3CBR%20%2F%3EYes%2C%20this%20is%20just%20like%20any%20other%20public%20IP%3C%2FLI%3E%0A%3CLI%3EAny%20orthogonality%20issue%20with%20other%20networking%20features%20like%20Accelerated%20Networking%2C%20VNET%20peering%20in%20same%2Fdifferent%20region%2C%20Express%20Route%2C%20Inter%20VM%20traffic%20in%20multi%20subnet%20etc.%3F%3CBR%20%2F%3ENone%3C%2FLI%3E%0A%3CLI%3EIs%20there%20any%20cost%20associated%20with%20secondary%20IP%3F%3CBR%20%2F%3ENot%20with%20private%20IP%20but%20with%20Public%20IP%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fpricing%2Fdetails%2Fip-addresses%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPricing%20-%20Virtual%20Machine%20IP%20Address%20Options%20%7C%20Microsoft%20Azure%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EAre%20the%20secondary%20IPs%20used%20for%20cluster%20and%20AG%20listener%2FFCI%20reserved%3F%20%3CBR%20%2F%3EYes%2C%20when%20a%20secondary%20IP%20configuration%20is%20saved%20then%20the%20IP%20is%20reserved%20and%20won%E2%80%99t%20be%20assigned%20to%20any%20other%20VM%2Fdevice.%3C%2FLI%3E%0A%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2882897%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20SQL%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESQL%20Server%20on%20Azure%20VMs%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Oct 28 2021 07:06 PM
Updated by: