- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Sorry to update this thread, but I need to put all my automation level to 'default'.
When VM are in Default mode, seems that everything is empty, example:
| Vm | : VirtualMachine-vm-13297 |
| Enabled | : |
| Behavior | : |
| IntraVmAffinity | : |
IntraVmAntiAffinity :
| LinkedView | : |
| DynamicType | : |
| DynamicProperty | : |
So I Try to do the same thing with a StorageDrsVmConfigSpec:
$storMgr = Get-View StorageResourceManager
$spec = New-Object VMware.Vim.StorageDrsConfigSpec
$dsc = Get-Datastorecluster DS1
$dsc.ExtensionData.PodStorageDrsEntry.StorageDrsConfig.VmConfig |%{
$entry = New-Object VMware.Vim.StorageDrsVmConfigSpec
$entry.Operation = "edit"
$entry.Info = $_
$entry.Info.Enabled = ""
$entry.Info.Behavior = ""
$entry.Info.IntraVMAffinity = ""
$spec.vmConfigSpec += $entry
}
$storMgr.ConfigureStorageDrsForPod($dsc.ExtensionData.MoRef,$spec,$true)
But ... no luck:
Exception calling "ConfigureStorageDrsForPod" with "3" argument(s): "A specified parameter was not correct.
spec"
Any idea ? ![]()