You can use View PowerCLI cmdlets to deploy an automated full-clone or linked-clone desktop pool that uses multiple network labels.

Before you begin

Procedure

Use a View PowerCLI cmdlet to deploy the desktop pool.

Option

Action

Deploy a linked-clone pool

Run the Add-AutomaticLinkedClonePool cmdlet and specify the path to the network label configuration file with the -NetworkLabelConfigFile parameter.

Deploy a full-clone desktop pool

Run the Add-AutomaticPool cmdlet and specify the path to the network label configuration file with the -NetworkLabelConfigFile parameter.

Linked-Clone Desktop Pool Deployment

In this example, the Add-AutomaticLinkedClonePool cmdlet creates a linked-clone pool named POOL_NAME and assigns the network labels in the network label configuration file named label.txt file.

Add-AutomaticLinkedClonePool -Pool_id POOL_NAME -NamePrefix NAME_PREFIX -Vc_id
    2162aa44-e99c-4f1a-875d-dd295681d2ca -Persistence Persistent
    -VmFolderPath "/resourcepool/vm/Discovered virtual machine"
    -ResourcePoolPath "/resourcepool/host/Cluster1/Resources/Cluster1_pool1"
    -ParentVmPath "/resourcepool/vm/Win7-Parent" -ParentSnapshotPath
    "/780936_agent/noServiceRestart/updatedVPListener" -DatastoreSpecs
    "[Conservative,replica]/resourcepool/host/Cluster1/Cluster1_Replica1;[Mod
    erate,OS,data]/resourcepool/host/Cluster1/Desktop_FC_9;[Moderate,OS,data]
    /resourcepool/host/Cluster1/Desktop_FC_8;[Moderate,OS,data]/resourcepool/
    host/Cluster1/Desktop_FC_7” -Composer_ad_id
    1a2b3c4d-5d6e-7f-1234-1234abcd -UseUserDataDisk $false -UseTempDisk
    $false -MinimumCount 2000 -MaximumCount 2000 -HeadroomCount 1500
    -PowerPolicy AlwaysOn -SuspendProvisioningOnError $false
    -NetworkLabelConfigFile "C:/label.txt"