Last active
August 29, 2015 14:04
-
-
Save andreaswasita/ae980580fd42fa70c957 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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