Failover within an Azure subnet using private IP - Windows
InfoScale clusters let you fail over IPs - and thereby, the application configured for HA - within the same subnet in the same VNet.
The following information is required:
-
A private IP (secondary private IP) address to be failed over
-
The device to which the IP should be plumbed
Sample configuration with private IP
The following graphic depicts a sample failover configuration within the same subnet using a private IP:
The sample configuration includes the following elements:
-
A Azure virtual network (VNet) is configured in Region A of the Azure cloud
-
An application is configured for HA using a cluster that comprises two nodes, Node1 and Node2, which are Azure virtual machines
-
Both the cluster nodes exist in the same subnet
-
A private IP is configured, which is failed over from one node to the other as part of the failover or the failback operations
Sample service group configuration with private IP
The following snippet is a service group configuration from a sample configuration file (main.cf):
Sample configuration using AzureAuth agent
group AzureAuthGrp (
SystemList = { AzureVM1 = 0, AzureVM2 = 1 }
Parallel = 1
)
AzureAuth azureAuth (
SubscriptionId = 640a326-fga6-90gh-b616-c1e9bb
ClientId = e8d899-d32a-47d04-8986-be739104d
SecretKey = fntPgnUnhTprQrqTRonSlpRhnGrrNklFngLs
TenantId = 9fjkabae-2348-4308-b503-6667d61
)
Phantom phres (
)
group AzureIPGrp (
SystemList = { AzureVM1 = 0, AzureVM2 = 1 }
)
IP IP_res (
Address = "10.1.5.67"
SubNetMask = "255.255.255.0"
MACAddress @AzureVM1 = 00-0D-3A-91-73-A0
MACAddress @AzureVM2 = 00-0D-3A-92-03-DC
)
NIC NIC_res (
MACAddress @AzureVM1 = 00-0D-3A-91-73-A0
MACAddress @AzureVM2 = 00-0D-3A-92-03-DC
)
AzureIP AzureIP_res (
PrivateIP = "10.1.5.42"
MACAddress @AzureVM1 = 00-0D-3A-91-73-A0
MACAddress @AzureVM2 = 00-0D-3A-92-03-DC
AzureAuthResName = azureAuth
)
IP_res requires AzureIP_res
AzureIP_res requires NIC_res
Sample configuration using a managed identity
group AzureIPGrp (
SystemList = { AzureVM1 = 0, AzureVM2 = 1 }
)
IP IP_res (
Address = "10.1.5.67"
SubNetMask = "255.255.255.0"
MACAddress @AzureVM1 = 00-0D-3A-91-73-A0
MACAddress @AzureVM2 = 00-0D-3A-92-03-DC
)
NIC NIC_res (
MACAddress @AzureVM1 = 00-0D-3A-91-73-A0
MACAddress @AzureVM2 = 00-0D-3A-92-03-DC
)
AzureIP AzureIP_res (
PrivateIP = "10.1.5.42"
MACAddress @AzureVM1 = 00-0D-3A-91-73-A0
MACAddress @AzureVM2 = 00-0D-3A-92-03-DC
ManagedIdentityClientID = 1da89bd2-9735-4266-b920-27c23b98f022
)
IP_res requires AzureIP_res
AzureIP_res requires NIC_res
Related information