Forum Discussion
MDH98
Jan 25, 2022Copper Contributor
Azure Stack HCI move VM from node to cluster
Greetings reader! I have a powershell script that creates virtual machines on one of my nodes in my Azure Stack HCI cluster and I was wondering if there are powershell commands for deploying my ...
MDH98
Jan 26, 2022Copper Contributor
Solution:
Add-ClusterVirtualMachineRole -Name $VMName -VirtualMachine $VMName -Cluster $ClusterName
All credit to SnaketheJakem on Reddit: https://www.reddit.com/r/PowerShell/comments/scwnry/azure_stack_hci_move_vm_from_node_to_cluster/
Add-ClusterVirtualMachineRole -Name $VMName -VirtualMachine $VMName -Cluster $ClusterName
All credit to SnaketheJakem on Reddit: https://www.reddit.com/r/PowerShell/comments/scwnry/azure_stack_hci_move_vm_from_node_to_cluster/