Update xNew-VM -> New-xVM, increasing ease of use and discoverability #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Another great function by you, William. I took the opportunity to increase the ease of use of the function, and added most of the PowerShell features that we all appreciate in a standard function/cmdlet. The updates (also listed in the comments in the updated .ps1):
Updates added Jan 2018 by Matt Boren:
-TrustAllCert
switch parameter to give user option as to whether they want to disable SSL certificate checking, instead of disabling SSL cert checking regardless-Cluster
, and set default value forResourcePool
, so as to reduce number of parameters needed-VMHost
object, instead of requiring user to additionally specify the name of the destination vCenter-VMHost
object, too-SourceVM
)ServiceLocatorNamePassword
from destination vCenter connection object (Client.Config
)CloneVM
task (creation of fewer additional interim variables, clean up overall syntax)Get-Task
calls)$destVCConn
was being used instead of the parameter$destvc
)-WhatIf
supportGet-Help <cmdlet>
will return fully useful help (with examples and whatnot), as expectedLet's discuss any of the updates. Hopefully we can make the world even that much better of a place with these feature adds! And, I put an example of the simplified syntax at the bottom of the commit.
Cheers, Matt Boren