Hey guys so I am working on a script to take one broker offline, then remove it from the HPC console, then take another Node offline, assign broker role then bring back online. I have the following script:
Set-HpcNodeState -Name "AP0720Alyn" -State "offline"
Remove-HpcNode -Name "AP0720Alyn"
Set-HpcNodeState -Name "ap0004abli" -State "offline"
Set-HPCNode -Name "ap0004abli" -Role brokernode
Set-HpcNodeState -Name "ap0004abli" -State "online"
During the Set-HPCNode -Name "ap0004abli" -Role brokernode step:
the following error occurs and for the life of me I cannot find a away around it :
PS D:\Microsoft HPC Pack 2016\Bin> Set-HPCNode -Name "ap0004abli" -Role BrokerNode
Set-HpcNode : Cannot bind parameter 'Role' to the target. Exception setting "Role": "Node roles can only be None,
ComputeNode, BrokerNode."
At line:1 char:38
+ Set-HPCNode -Name "ap0004abli" -Role BrokerNode
+ ~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Set-HpcNode], ParameterBindingException
+ FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.ComputeCluster.CCPPSH.SetHpcNodeCommand
Can someone point me in the right direction here?