Commit Graph

380 Commits

Author SHA1 Message Date
LucD
6c50bef798 rCisTag-Examples
Add examples to rCisTag module
2017-12-02 23:25:35 +01:00
LucD
1739af675a Merge remote-tracking branch 'refs/remotes/origin/master' into rCisTag-module 2017-12-02 22:37:19 +01:00
Kyle Ruddy
c645366e5c Merge pull request #147 from vmware/rCisTag-module
Add module rCisTag
2017-12-02 08:42:22 -05:00
lucdekens
2c2b16457c Add module rCisTag
Module rCisTag provides CRUD functions for Tags, Tag Categories and Tag Assignments.
The functions use the Cis REST API functions.
This is a beta release (0.9.0), feedback welcome.
2017-12-01 23:08:04 +01:00
Kyle Ruddy
240394e2ed Merge pull request #144 from isjwuk/patch-2
Minor Spelling corrections generted->generated
2017-11-29 09:16:44 -05:00
Kyle Ruddy
83463ba97e Merge pull request #145 from lamw/master
Export/Import functions for manual vCenter Server Migrations
2017-11-29 09:16:23 -05:00
Kyle Ruddy
bb1869411c Merge pull request #146 from alanrenouf/master
New VMware Cloud on AWS functions module
2017-11-29 09:15:55 -05:00
alanrenouf
d6861d38fb New VMware Cloud on AWS functions module 2017-11-28 22:48:08 -08:00
William Lam
d104a29393 Might be useful if I actually added directory 2017-11-21 09:38:24 -08:00
William Lam
cdfd510dd9 Whoops, missed folder for module 2017-11-21 09:37:27 -08:00
William Lam
dc6b02a95a Export/Import functions for manual vCenter Server Migrations 2017-11-21 07:39:22 -08:00
Chris
a47369a295 Minor Spelling corrections generted->generated
Minor Spelling corrections generted->generated in Get-Help examples
2017-11-20 15:22:21 +00:00
Kyle Ruddy
84503224b8 Merge pull request #143 from lamw/master
Updating Content Library Module
2017-11-16 00:34:26 -05:00
Kyle Ruddy
902899f067 Merge pull request #142 from daoyuan023/vmtools_management
Create VMToolsManagment for VMTools upgrade, guest info query .etc
2017-11-16 00:33:28 -05:00
Kyle Ruddy
e4245533cd Merge pull request #139 from mtelvers/master
Fixes to Get-HVDatastore() when multiple datastores are specified
2017-11-16 00:32:11 -05:00
William Lam
2d429c6271 Forgot to un-comment the delete code 2017-11-14 06:45:58 -08:00
William Lam
9f2fc3ec06 Adding several new Content Library functions 2017-11-14 06:25:50 -08:00
daoyuanw
14256a32a8 Add VMToolsManagment for VMTools upgrade, guest info query .etc 2017-11-14 14:43:47 +08:00
mtelvers
ea1178a308 Merge branch 'master' of https://github.com/mtelvers/PowerCLI-Example-Scripts 2017-11-06 11:15:35 +00:00
mtelvers
77d44734d4 Add Get-HVResourceStructure to display the Resouce Pool structure
Display the resource pools available to the Horizon View server
2017-11-06 11:15:26 +00:00
Kyle Ruddy
02364c5687 Merge pull request #136 from spartyzik/fix-Get-VMNetworkPortId
Use the item in foreach rather than collection
2017-11-05 20:29:32 -05:00
mtelvers
6b4bbf562d Delete .VMware.HV.Helper.psm1.swp 2017-11-03 17:18:55 +00:00
mtelvers
9e588e39c9 Added -ResourcePool to Set-HVPool
Update Set-HVPool to allow you to set a new resource pool within the same host/cluster
2017-11-03 17:13:44 +00:00
mtelvers
d406e54b19 Fix to New-HVPool when persistent datastores are specified
Function Get_Datastore should read Get-HVDatastore
2017-11-03 11:17:27 +00:00
mtelvers
5879c10003 Fixes to Get-HVDatastore() when multiple datastores are specified
`$Datastores` needs to be initialized as an empty array `@()` rather than `$null`.  Furthermore, if `$DsStroageOvercommit` is empty it is only initialised with a single element where there should be one element per datastore.  I've moved the test into the loop instead.
2017-11-02 22:18:41 +00:00
Unknown
df32c59148 Use the item in foreach rather than collection
Error message should use $v rather than $vm
2017-10-31 11:17:36 -04:00
Kyle Ruddy
0b6d1dd793 Merge pull request #133 from Mr-Uptime/patch-5
Multipath to Round Robin on all FC disks in cluster
2017-10-30 22:58:39 -04:00
Kyle Ruddy
ebf92d8130 Merge pull request #131 from mtelvers/master
Improved searching for Host and Clusters, Resource Pools and Access G…
2017-10-30 22:58:07 -04:00
Kyle Ruddy
e785ef98a4 Merge pull request #134 from Mr-Uptime/patch-6
Adds VLANs to an existing standard switch
2017-10-30 22:57:14 -04:00
Kyle Ruddy
7947f2c95e Merge pull request #135 from lamw/master
Adding NSXT Module
2017-10-30 22:56:48 -04:00
William Lam
77adef309d Adding NSXT Module 2017-10-29 13:45:29 -07:00
Alan Comstock
dc523953ca Adds VLANs to an existing standard switch
This script will add VLANs to an existing standard switch on a host.
Information needed:
$esxhost - Name of host
$vswitch - Name of existing standard switch
$vlanlist - List of all the VLANs you want to add to the switch
2017-10-27 09:25:47 -05:00
Alan Comstock
76820423a4 Multipath to Round Robin on all FC disks in cluster
This will configure multipath to round robin and IOPS to 1 on all disks in a cluster based upon the vendor type.
This script is configured for 3par LUNs.  Change $vendor for other storage types/vendors.
2017-10-27 09:16:39 -05:00
mtelvers
c2f137c812 Updates to Set-HVPool
Updated Set-HVPool to address issue #132.  The -Start and -Stop parameter tested the wrong variable in the loop.  $item is undefined.  Furthermore, in general if the key/value pair specified $false as the value then the parameter wasn't seen in simple logic test such as if ($key -and $value) {}.  I've updated to use $PSBoundParameters instead.
2017-10-27 08:52:44 +01:00
mtelvers
dfd5a4e37e Fix for Find-HVMachine if no match is found in the first 1000 results
If no match was found in the first 1000 results then the QueryService_GetNext() was never called as it used the length of the result array to detect the second pass through the loop
2017-10-25 17:22:20 +01:00
mtelvers
1edf24432c Improved searching for Host and Clusters, Resource Pools and Access Groups
Add three new internal functions Get-HVHostOrClusterID, Get-HVResourcePoolID and Get-HVAccessGroupID to search the tree results of HostOrCluster_GetHostOrClusterTree(), ResourcePool_GetResourcePoolTree() and AccessGroup_List() respectively.  Previously only the top level of the result tree from these calls where considered which was raised as issue #88.  The solutions provided in the discussions were point fixes as they changed the level of the tree which was searched which missed matches at the other and the original levels.
2017-10-18 08:54:42 +01:00
Kyle Ruddy
78c91088f4 Merge pull request #130 from mtelvers/master
Updated Find-HVMachine
2017-10-16 16:06:31 -04:00
mtelvers
ba61e6bb0f Updated Find-HVMachine
Updated Find-HVMachine to use the iterative query service, QueryService_Create() rather than the quick QueryService_Query()
2017-10-16 19:11:49 +01:00
Kyle Ruddy
ca6c566257 Merge pull request #128 from mtelvers/master
Updates to New-HVPool
2017-10-16 12:13:32 -04:00
mtelvers
754e9300eb Updates to New-HVPool
Removed parameter -Deleting which isn't used and is a read-only property anyway
Corrected automatic Logoff Minutes validation range which is 1.. rather than 1..120
Updated the validation set for delete or refresh machines after log off.  From the API, valid options are Never, Delete, Refresh not Never, Delete, After
Allowed selecting the AD Container when creating Linked Clones
2017-10-16 10:03:30 +01:00
Kyle Ruddy
bfefc8d321 Merge pull request #127 from kmruddy/master
Resource Clean up and New Script
2017-10-14 15:51:04 -04:00
Kyle Ruddy
c0a851cc0b Merge pull request #122 from jrob24/master
Add vCenter.Alarms module
2017-10-14 15:50:20 -04:00
Kyle Ruddy
795bcccad8 Get-VMNetworkPortId
This script can be used to find the network Port-ID on the lost host.
2017-10-14 15:36:58 -04:00
Kyle Ruddy
accbd83eff Clean Up
Moving script resources to the scripting folder.
2017-10-14 15:36:06 -04:00
Kyle Ruddy
e444ed58ef Merge remote-tracking branch 'vmware/master' 2017-10-14 15:33:26 -04:00
Kyle Ruddy
89de49c58f Merge pull request #126 from mtelvers/master
Updated Set-HVPool and add function Set-HVGlobalEntitlement
2017-10-11 20:57:14 -04:00
mtelvers
04aabda1ba Updated Set-HVPool and add function Set-HVGlobalEntitlement
Add -globalEntitlement parameter to Set-HVPool to allow pool to be associated with a globalentitlement. Previously this was only possible through the New-HVPool cmdlet. Added cmdlet Set-HVGlobalEntitlement to allow global entitlements to be updated
2017-10-09 12:10:33 +01:00
Kyle Ruddy
7019556842 Merge pull request #123 from isjwuk/patch-1
Update VMware.VMEncryption.psm1
2017-10-05 11:05:22 -04:00
Kyle Ruddy
eeef520611 Merge pull request #125 from lamw/master
Adding VMware Fusion Module
2017-10-05 11:04:22 -04:00
Kyle Ruddy
45192ff5ae Merge pull request #121 from lukaswinn/patch-1
Create vCenterSnapshot.ps1
2017-10-05 10:55:19 -04:00