This command will load the Citrix PowerShell modules: asnp citrix.*
This command will authenticate you to your Citrix Cloud account: Get-XdAuthentication
Check if there are any pending power actions.
Use command: Get-BrokerHostingPowerAction -State pending
You should notice there are many tasks pending.
Next, remove the pending power actions pending by running the following command:
Get-BrokerHostingPowerAction -Filter { State -eq "Pending" } | Remove-BrokerHostingPowerAction
Once removed, we then need to restart the hypervisor connection.
Note: if you have more than one connection, you will need to restart those also.
To get a list of your hypervisor connections, run the following command: Get-BrokerHypervisorConnection
Take note of the "UID" field for each connection.
Once you have taken note of the UID, then run the following command to restart the Hypervisor connection:
Reset-BrokerHypervisorConnection -HypervisorConnectionUid "Number seen in UID field after running the Get-HypervisorConnection".
After resetting your hypervisor connections, power state should now show current status in Studio and you should be able to power manage your machines through Studio as expected.
Problem Cause
The issue can be caused due to power actions failing to occur after a period of time.
The issue may also occur if cloud connectors are updated before power actions have taken place.