Nov 2018
- [enhancement] Rewrote custom types in native PowerShell Classes. This works around the somewhat cludgey and often problematic DLL-reference-hell. A couple of things to note (breaking changes!):
- This increases the minimum PowerShell version to 5.0 from the previous 4.0 requirement
- The classes are no longer in a namespace,
DRSRule, but are "top-level" (due to the way that native PowerShell are implemented). So, class names in the module go fromDRSRule.VMGroupin pre-v2 toDRSRule_VMGroupin this module version, for example
- [enhancement] #19 Added argument completers to parameters, maximizing ease of use! Argument completers are what enable tab-comletion of possible values for parameters
- [enhancement] #20 Added Pester tests for rest of the cmdlets (beyond just the
Get-cmdlets) -- go-o-o-o, good testing! - [enhancement] Restructured repository, putting module components into DRSRule subdirectory, which represents just the items required for the actual module. Rest of items at top-level of repository are supporting/meta items for the module, but not used within the module itself
- [enhancement] Added
Update-ThisModuleManifest.ps1for ease of module maintenance for all those module contributors out there - [bugfix] Added
-Mandatoryparameter toNew-DrsVMtoVMRule. Had been in code since v1.0, but commented out (found no reason for it being commented out). Also,Get-DrsVMToVMRulewas not properly reportingMandatoryproperty on corresponding objects. Corrected that, now
Jul 2018
- [bugfix] fixed Issue #8, "Errors not throwing actual errort" -- now throwing the actual errors, for better debugging capabilities (if ever a bug arises again)
- [bugfix] fixed Issue #12, "Error at addition in empty group the VM list" -- can now add a VM to a DrsVMGroup that has no VM members to start, for whatever reason (VM atrophy, maybe?)
- [bugfix] fixed Issue #15, "Metadata file VMware.Vim.dll could not be found" -- now loads items properly for VMware PowerCLI version 10 as well, and on Windows PowerShell and PowerShell Core.
25 May 2017
- [enhancement] per Issue #2, added ability to remove one or more target items from a DRS VMGroup or VMHost group via
Set-DrsVMGroup,Set-DrsVMHostGroup- added
-AddVMand-RemoveVMparameters toSet-DrsVMGroupfor easier adds and removes of VMs to/from DRS VM group - added
-AddVMHostand-RemoveVMHostparameters toSet-DrsVMHostGroupfor easier adds and removes of VMHosts to/from DRS VMHost group - retained
-VM/-VMHostand-Appendparameters for these two functions, respectively, to maintain backwards compatibility with older code
- added
- [errorHandling] added error handling, for now, for problem when the user wants to remove all VMs from a VM group. Further investigation pending
- [bugfix] fixed Issue #9 -- updated code that determines the location of the referenced
VMware.Vim.dllfile based on PowerCLI module version. Tested with PowerCLI 6.3, 6.5rel1, and 6.5.1, and with having installed v6.3 in a non-default location - [bugfix] fixed Issue #10 -- cmdlet
New-DrsVMtoVMHostRulepreviously hadVerboseandWhatIfoutput that were inaccurate regarding the new rule being a affinity or an anti-affinity rule (was backwards)
29 Mar 2017
- [enhancement] added support for enhancement suggested in Issue #7: get a DRS
VMGroupby the related VM; while at it, added support for:- getting a DRS
VMHostGroupby the related VMHost - getting DRS
VMToVMRuleby VM - getting DRS
VMToVMHostRuleby VM or VMHost
- getting a DRS
- [improvment] added Pester tests for
Get-Drs*cmdlets
30 Jun 2015
- [bugfix] fixed rare problem with creating new
DRSRule.VMHostGroupfor VMHost group item whereHostproperty of correspondingVMware.Vim.ClusterHostGroupobject is empty and user is using PowerShell v5 (credit gpduck). This was inGet-DrsVMHostGroup. Updated similar situation for functionsGet-DrsVMGroupandGet-DrsVMToVMRule.
Initial release, 21 Jan 2015.