Hi , when i running your script i have error
New-ResourcePool When specifying custom CPU shares, number of CPU shares must be specified.
when i add CpuSharesLevel = $row.CpuSharesLevel
New-ResourcePool When specifying custom number of CPU shares, SharesLevel.Custom must be specified.
maybe you now how resolve this?
ParentId,Parent,CpuSharesLevel,NumCpuShares,CpuReservationMHz,CpuExpandableReservation,CpuLimitMHz,MemSharesLevel,NumMemShares,MemReservationMB,MemReservationGB,MemExpandableReservation,MemLimitMB,MemLimitGB,Name,CustomFields,ExtensionData,Id
ResourcePool-resgroup-250394,Resources,Normal,4000,0,True,-1,Normal,163840,0,0,True,-1,-1,PROD,"VMware.VimAutomation.ViCore.Impl.V1.Util.ReadOnlyDictionary`2[System.String,System.String]",VMware.Vim.ResourcePool,ResourcePool-resgroup-256030
ResourcePool-resgroup-250394,Resources,Normal,4000,0,True,-1,Normal,163840,0,0,True,774144,756,k8s,"VMware.VimAutomation.ViCore.Impl.V1.Util.ReadOnlyDictionary`2[System.String,System.String]",VMware.Vim.ResourcePool,ResourcePool-resgroup-256031