elconas
Contributor
Contributor

PowerCLI HARestartPriority not defined for VM

Hello, 
I try to read the "HARestartPriority" of some virtual machines via PowerCLI. However when I query the machine via Get-VM, the property is empty. 
Skript:
PowerCLI> $rc = Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$False -Scope Session
PowerCLI> Connect-VIServer -User "myUser" -Password "myPassword" vcenter
PowerCLI> $clusterObj = Get-Cluster -name "myCluster"
PowerCLI> $clusterObj.HARestartPriority 
Medium
PowerCLI> $vm = Get-VM -Location $clusterObj -Name "myVM"
PowerCLI> $vm.id
VirtualMachine-vm-1035
PowerCLI> $vm.HARestartPriority #<-- This is empty
PowerCLI> 
Whats wrong here (vCenter 5.1) ? 
-------------------------------
PowerCLI Version
----------------
   VMware vSphere PowerCLI 5.5 Release 1 build 1295336
---------------
Snapin Versions
---------------
   VMWare AutoDeploy PowerCLI Component 5.5 build 1262826
   VMWare ImageBuilder PowerCLI Component 5.5 build 1262826
   VMware vCloud Director PowerCLI Component 5.5 build 1295337
   VMware License PowerCLI Component 5.5 build 1265954
   VMware VDS PowerCLI Component 5.5 build 1295334
   VMware vSphere PowerCLI Component 5.5 build 1295334
0 Kudos
1 Reply
elconas
Contributor
Contributor


Sorry, wrong forum - please ignore Smiley Happy

0 Kudos