You can disassociate a storage policy that is associated with a virtual machine and its hard disk.
Prerequisites
- Verify that you are connected to a vCenter Server system.
- Verify that a virtual machine named Target-VM exists in the vCenter Server environment.
- Verify that a storage policy is associated with the Target-VM virtual machine.
Procedure
- Get the Target-VM virtual machine and store it in the $vm variable.
$vm = Get-VM -Name 'Target-VM'
- Get the hard disk associated with the $vm virtual machine and store it in the $hd variable.
$hd = Get-HardDisk -VM $vm
- Disassociate all storage policies that are associated with the $vm virtual machine and the $hd hard disk.
Set-SpbmEntityConfiguration $vm, $hd -StoragePolicy $null