Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Server 2012 R2 cluster configuration issues.

$
0
0

I am trying to configure a SQL server always on availability group in Azure.   I am following these instructions http://msdn.microsoft.com/en-us/library/dn425027.aspx.  Specifically on step 9 you are supposed to use powershell to assign some "ClusterParameters" to the cluster resource created earlier.  However I can't seem to get this step to work.  

According to the documentation for the set-clusterparameter cmdlet, there should be three ways to use it, but none of them are working for me.

http://technet.microsoft.com/en-us/library/ee460993.aspx

#try 1
PS C:\Users\josh.JJD> Get-ClusterResource "IP Address $CloudServiceIP"|set-ClusterParameter EnableDhcp 0
set-ClusterParameter : Unable to save property changes for 'IP Address 11.11.11.11'.
    The parameter is incorrect
At line:1 char:50
+ Get-ClusterResource "IP Address $CloudServiceIP"|set-ClusterParameter EnableDhcp ...
+                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-ClusterParameter], ClusterCmdletException
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.FailoverClusters.PowerShell.SetClusterParameterCommand

#try 2
PS C:\Users\josh.JJD> Get-ClusterResource "IP Address $CloudServiceIP" | Set-ClusterParameter -Multiple @{"EnableDhcp"=0
}
Set-ClusterParameter : Unable to save property changes for 'IP Address 11.11.11.11'.
    The parameter is incorrect
At line:1 char:52
+ Get-ClusterResource "IP Address $CloudServiceIP" | Set-ClusterParameter -Multipl ...
+                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-ClusterParameter], ClusterCmdletException
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.FailoverClusters.PowerShell.SetClusterParameterCommand

#try 3
PS C:\Users\josh.JJD> Get-ClusterResource "IP Address $CloudServiceIP" | Set-ClusterParameter -name EnableDhcp -value 0
Set-ClusterParameter : Unable to save property changes for 'IP Address 11.11.11.11'.
    The parameter is incorrect
At line:1 char:52
+ Get-ClusterResource "IP Address $CloudServiceIP" | Set-ClusterParameter -name En ...
+                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-ClusterParameter], ClusterCmdletException
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.FailoverClusters.PowerShell.SetClusterParameterCommand
PS C:\Users\josh.JJD>

#try 4
PS C:\Users\josh.JJD> $res = Get-ClusterResource "IP Address $CloudServiceIP"
PS C:\Users\josh.JJD> $param = new-object Microsoft.FailoverClusters.PowerShell.ClusterParameter $res,EnableDhcp,0
PS C:\Users\josh.JJD> $param|Set-ClusterParameter
Set-ClusterParameter : Unable to save property changes for 'IP Address 11.11.11.11'.
At line:1 char:8
+ $param|Set-ClusterParameter
+        ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-ClusterParameter], ApplicationException
    + FullyQualifiedErrorId : System.ApplicationException,Microsoft.FailoverClusters.PowerShell.SetClusterParameterCom
   mand

#try 5
PS C:\Users\josh.JJD> $param1 = new-object Microsoft.FailoverClusters.PowerShell.ClusterParameter $res,EnableDhcp,0
PS C:\Users\josh.JJD> $param2 = new-object Microsoft.FailoverClusters.PowerShell.ClusterParameter $res,ProbePort,59999
PS C:\Users\josh.JJD> $params = $param1,$param2
PS C:\Users\josh.JJD> $params|Set-ClusterParameter
Set-ClusterParameter : Unable to save property changes for 'IP Address 11.11.11.11'.
At line:1 char:9
+ $params|Set-ClusterParameter
+         ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-ClusterParameter], ApplicationException
    + FullyQualifiedErrorId : System.ApplicationException,Microsoft.FailoverClusters.PowerShell.SetClusterParameterCom
   mand

This shows a list of cluster parameters.

PS C:\Users\josh> Get-ClusterResource "IP Address"|Get-ClusterParameter

Object                        Name                          Value                        Type
------                        ----                          -----                        ----
IP Address       Network                                                     String
IP Address       Address                       0.0.0.0                       String
IP Address       SubnetMask                    0.0.0.0                       String
IP Address       EnableNetBIOS                 2                             UInt32
IP Address       OverrideAddressMatch          0                             UInt32
IP Address       EnableDhcp                    0                             UInt32
IP Address       ProbePort                     0                             UInt32
IP Address       ProbeFailureThreshold         0                             UInt32
IP Address       LeaseObtainedTime             1/1/0001 12:00:00 AM          DateTime
IP Address       LeaseExpiresTime              1/1/0001 12:00:00 AM          DateTime
IP Address       DhcpServer                    255.255.255.255               String
IP Address       DhcpAddress                   0.0.0.0                       String
IP Address       DhcpSubnetMask                255.0.0.0                     String



Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>