Powershell wrappers for interacting with VMWare 6.5+ Rest API
Functions
Get-VMWareRAVMMac This function is used to grab the mac address of a single connected nic. Look at 'GET /vcenter/vm/{vm}/hardware/ethernet' to get more information about all nics associated with a vm
New-VMWareRAVM diskSizeGB will take an array of Integers to build multiple disks. You can still use secondDiskSizeGB and it will work as expected
Added -scsiBusType input to New-VMWareRAVM. Non-mandatory, and will use ESXi environment's preferred default if not specified. If specified, any virtual drives will be attached to this bus.
Fixed a bug with Get-VMWareRAVM when the $computer variable is set in your current environment
Update function New-VMWareRAVM to support NicType as an option.
Update function Get-VMWareVM -detailed switch fixed
Update function Get-VMWareRAVMID
Add function Get-VMWareRADatastore
BugFix Get-VMWareRAVM using -vmid switch was throwing error, failed to define URL
Add docs and code signing.
Send array of integers to disksizeGB in newVM function .Fix get-vmwareravm function to return ID. Return null if Get-VMWareRAVMID cant find ID. Fix recursion issue. Update Get-VMWareRAVMID so ignore case sensitivity. Fix Get-VMWareRAVTag, Addfuctions to get host and cluster, expand get vm to do a better search, Add function Get-VMWareRAVMMac, Add -UseBasicParsing switch to invoke-webrequest to run on server-core