PowerCLI: Change Storage Policy in Azure VMware Solution. #avs #shorts #powercli #azure #VMware

preview_player
Показать описание
Quick #short to demonstrate how to set a storage policy to a single VM in Azure VMware Solution, using PowerCLI. #AVS @VMwareCloud @VMwarevSphere #AzureVmwareSolution

I DOOOO have a small cAsEsEnSiTiVe typo in there, the command $Disks = $vm | Git-Harddisk should be $disks=....., it worked in the following command because I had already set that variable previously with the lowercase d. If you use this exact command, make sure to keep the same exact case sensitive letters that you use when setting the variable ;)

Commands used:
$vm = Get-VM BG-HCX-Test
$disks = $vm | Get-Harddisk
$VM, $disks | Get-SpbmEntityConfiguration | Set-spbmEntityConfiguration -StoragePolicy "RAID0"

Connecting to vCenter via PowerCLI:
Рекомендации по теме