Skip to content

Instantly share code, notes, and snippets.

@andreaswasita
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreaswasita/ae980580fd42fa70c957 to your computer and use it in GitHub Desktop.
Save andreaswasita/ae980580fd42fa70c957 to your computer and use it in GitHub Desktop.
# Define variables
$ClusterNetworkName = "Cluster Network 1" # the cluster network name
$IPResourceName = "IP Address 10.0.1.0" # the IP Address resource name
$CloudServiceIP = "23.100.xxx.xxx" # IP address of your cloud service
Import-Module FailoverClusters
Get-ClusterResource $IPResourceName | Set-ClusterParameter -Multiple @{"Address"="$CloudServiceIP";"ProbePort"="59999";SubnetMask="255.255.255.128";"Network"="$ClusterNetworkName";"OverrideAddressMatch"=1;"EnableDhcp"=0}
# Define variables
$ClusterNetworkName = "Cluster Network 2" # the cluster network name
$IPResourceName = "IP Address 192.168.1.0" # the IP Address resource name
$CloudServiceIP = "23.100.xxx.xxx" # IP address of your cloud service
Import-Module FailoverClusters
Get-ClusterResource $IPResourceName | Set-ClusterParameter -Multiple @{"Address"="$CloudServiceIP";"ProbePort"="59999";SubnetMask="255.255.255.128";"Network"="$ClusterNetworkName";"OverrideAddressMatch"=1;"EnableDhcp"=0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment