Integration

Table Of Contents
Creating and Updating Automatically Provisioned Desktop Pools
You can use the Get-ViewVC and Update-AutomaticPool cmdlets to create and update automatically
provisioned desktop pools.
In the following example, the Get-ViewVC cmdlet adds an automatically provisioned desktop pool called
auto1. The desktop pool is managed by a vCenter Server instance called vc.mydom.int.
Get-ViewVC -serverName vc.mydom.int | Add-AutomaticPool -pool_id auto1 -displayName "ADP1"
-namePrefix "adp1-{n:fixed=4}" -vmFolderPath /AutoConfig/vm
-resourcePoolPath /AutoConfig/host/Resources -templatePath /AutoConfig/vm/ADP_template
-dataStorePaths /host/datastore_1/lun10 -customizationSpecName "Windows 7 Variation 3"
-minimumCount 4 -maximumCount 10
You can provision all the desktops in advance by setting the -minimumCount and -maximumCount parameters
to the same value.
In the following example, the Update-AutomaticPool cmdlet updates the configuration of an automatically
provisioned desktop pool called auto1.
Update-AutomaticPool -pool_id auto1 -displayName "Automatic Desktop Pool 1"
-isProvisioningEnabled $false -dataStorePaths /host/datastore_1/lun10;/host/datastore_1/lun12
Because the datastores specified in the -datastorePaths parameter override the previous setting, you must
specify any existing datastores in the parameter for the desktop pool to continue to use those datastores.
Creating and Updating Linked-Clone Desktop Pools
You can use the Get-ViewVC and Get-DesktopVM cmdlets to create and update linked-clone desktop pools.
In the following example, the Get-ViewVC cmdlet adds a linked-cloned desktop pool named lcdpool_1. The
pool is managed by View Composer on a vCenter Server instanced named vc.mydom.int.
Get-ViewVC -serverName vc.mydom.int | Get-ComposerDomain -domain VCDOM |
Add-AutomaticLinkedClonePool -pool_id lcdpool_1 -displayName "LCD Pool 1"
-namePrefix "lcp1-{n}-dt" -parentVMPath /AutoPoolVMs/parent
-parentSnapshotPath /AutoPoolSnapshots/parent1_snapshot -vmFolderPath /AutoConfig/VM_folder
-resourcePoolPath /AutoConfig/host/Resources
-datastoreSpecs [Aggressive,os,data]/host/datastore_1/lun04;/host/datastore_2/lun16
-dataDiskLetter "D" -dataDiskSize 100 -minimumCount 4 -maximumCount 10
You can provision all the desktops in advance by setting the -minimumCount and -maximumCount parameters
to the same value. If you specify a persistent data disk, use an uppercase letter for the drive. Do not use a
letter that already exists on the parent virtual machine for a drive such as A, B, or C, or a letter that conflicts
with a network-mounted drive.
In the following example, the Get-ViewVC cmdlet updates the configuration of a linked-clone desktop pool
named lcdpool_1.
Get-ViewVC -serverName vc.mydom.int | Get-ComposerDomain -domain VCDOM |
Update-AutomaticLinkedClonePool -pool_id lcdpool_1 -datastoreSpecs
[Conservative,os,data]/host/datastore_1/lun04;/host/datastore_2/lun16;/host/datastore_2/lun22
-minimumCount 4 -maximumCount 20 -headroomCount 2 -powerPolicy Suspend -defaultProtocol PCOIP
-isUserResetAllowed $true
Because the datastores specified in the -datastoreSpecs parameter override the previous setting, you must
specify any existing datastores in the parameter for the pool to continue to use those datastores.
You can use the Get-DesktopVM cmdlet to perform rebalance, refresh, and recompose operations.
View Integration
40 VMware, Inc.