Citrix Virtual Apps and Desktops SDK

Add-Provschemecontrolleraddress

Adds a list of host names (as DNS addresses) to a provisioning scheme.

Syntax

Add-ProvSchemeControllerAddress [-ProvisioningSchemeName] <String> [-ControllerAddress] <String[]> [-LoggingId <Guid>] [-BearerToken <String>] [-AdminAddress <String>] [<CommonParameters>]

Add-ProvSchemeControllerAddress -ProvisioningSchemeUid <Guid> [-ControllerAddress] <String[]> [-LoggingId <Guid>] [-BearerToken <String>] [-AdminAddress <String>] [<CommonParameters>]
<!--NeedCopy-->

Detailed Description

Provides the ability to associate controller hosts (and hence implicitly a set of brokers) with a specific provisioning scheme. This optional data is passed to the machines created by the Machine Creation Services, where it is used to associate the newly created machine with a broker. The list is returned along with the provisioning scheme that it is assigned to.

Parameters

Name Description Required? Pipeline Input Default Value
ProvisioningSchemeName The name for the provisioning scheme that the list of addresses is to be added to. true true (ByPropertyName)  
ProvisioningSchemeUid The unique identifier for the provisioning scheme that the list of addresses is to be added to. true false  
ControllerAddress Specifies the array of DNS names to be added to the provisioning scheme. true true (ByPropertyName)  
LoggingId Specifies the identifier of the high-level operation this cmdlet call forms a part of. Citrix Studio and Director typically create high-level operations. PowerShell scripts can also wrap a series of cmdlet calls in a high-level operation by way of the Start-LogHighLevelOperation and Stop-LogHighLevelOperation cmdlets. false false  
BearerToken Specifies the bearer token assigned to the calling user false false  
AdminAddress Specifies the address of a XenDesktop controller that the PowerShell snap-in connects to. You can provide this as a host name or an IP address. false false LocalHost. Once a value is provided by any cmdlet, this value becomes the default.

Input Type

Citrix.Machinecreation.Sdk.Provisioningscheme
You Can Pipe An Object Containing A Parameter Called ‘Provisioningschemename’ To Add-Provschemecontrolleraddress.

Return Values

Citrix.Machinecreation.Sdk.Provisioningscheme
Add-Provschemecontrolleraddress Returns The Updated Provisioningscheme Object Containing The Union Of The Old And New Controller Address Lists.
Provisioningschemeuid <Guid>
The Unique Identifier For The Provisioning Scheme.
Provisioningschemename <String>
The Name Of The Provisioning Scheme.
Cpucount <Int>
The Number Of Processors That Vms Will Be Created With When Using This Scheme.
Memorymb <Int>
The Maximum Amount Of Memory That Vms Will Be Created With When Using This Scheme.
Masterimagevm <String>
The Path Within The Hosting Unit Provider To The Vm Or Snapshot Of Which The Scheme Is Currently Using A Copy.
Masterimagevmdate <Datetime>
The Date And Time That The Copy Of The Vm Image Was Made For The Scheme.
Identitypooluid <Guid>
The Unique Identifier Of The Identity Pool (From The Adidentity Powershell Snap-In) That The Scheme Uses.
Identitypoolname <String>
The Name Of The Identity Pool (From The Adidentity Powershell Snap-In) That The Scheme Uses.
Hostingunituid <Guid>
The Unique Identifier Of The Hosting Unit (From The Hosting Unit Powershell Snap-In) That The Scheme Will Use.
Hostingunitname <String>
The Name Of The Hosting Unit (From The Hosting Unit Powershell Snap-In) That The Scheme Will Use.
Cleanonboot <Boolean>
Indicates Whether Or Not The Vms Created Are To Be Reset To A Clean State On Each Boot.
Taskid <Guid>
The Identifier Of Any Current Task That Is Running For The Provisioning Scheme.
Metadata <Citrix.Machinecreation.Sdk.Metadata[]>
The Metadata Associated With This Provisioning Scheme.
Controlleraddress <String[]>
The Dns Names Of The Controllers Associated With This Provisioning Scheme For Quick Deploy Purposes.

Notes

In the case of failure, the following errors can result.
Error Codes
———–
ProvisioningSchemeNotFound
The specified provisioning scheme could not be located.
PermissionDenied
The user does not have administrative rights to perform this operation.
ConfigurationLoggingError
The operation could not be performed because of a configuration logging error
DatabaseError
An error occurred in the service while attempting a database operation.
DatabaseNotConfigured
The operation could not be completed because the database for the service is not configured.
ServiceStatusInvalidDb
An error occurred in the service while attempting a database operation - communication with the database failed for
for various reasons.
CommunicationError
An error occurred while communicating with the service.
PermissionDenied
The user does not have administrative rights to perform this operation.
ExceptionThrown
An unexpected error occurred. To locate more details, see the Windows event logs on the controller being used or examine the XenDesktop logs.

Examples

Example 1

C:\PS>Add-ProvSchemeControllerAddress -ProvisioningSchemeUid "01a4a008-8ce8-4165-ba9c-cdf15a6b0501" -ControllerAddress (ddcA.citrix.com,ddcB.citrix.com,ddcC.citrix2.com)

ProvisioningSchemeUid  : 01a4a008-8ce8-4165-ba9c-cdf15a6b0501

ProvisioningSchemeName : Scheme2

CpuCount               : 1

MemoryMB               : 1024

MasterImageVM          : Base.vm/Base.snapshot

MasterImageVMDate      : 17/05/2010 09:53:40

IdentityPoolUid        : 03743136-e43b-4a87-af74-ab71686b3c16

IdentityPoolName       : idPool1

HostingUnitUid         : 01a4a008-8ce8-4165-ba9c-cdf15a6b0501

HostingUnitName        : HostUnit1

CleanOnBoot            : True

TaskId                 : 00000000-0000-0000-0000-000000000000

Metadata               : {}

ControllerAddress      : {ddcA.citrix.com,ddcB.citrix.com,ddcC.citrix2.com}
<!--NeedCopy-->

Description

Add a set of controllers to the provisioning scheme with the identifier “01a4a008-8ce8-4165-ba9c-cdf15a6b0501”.

Example 2

C:\PS>Get-ProvScheme -ProvisioningSchemeName scheme1 | Add-ProvSchemeControllerAddress -ControllerAddress (ddcA.citrix.com,ddcB.citrix.com,ddcC.citrix2.com)

ProvisioningSchemeUid  : 7585f0de-192e-4847-a6d8-22713c3a2f42

ProvisioningSchemeName : Scheme1

CpuCount               : 1

MemoryMB               : 1024

MasterImageVM          : Base.vm/Base.snapshot

MasterImageVMDate      : 17/05/2010 09:53:40

IdentityPoolUid        : 03743136-e43b-4a87-af74-ab71686b3c16

IdentityPoolName       : idPool1

HostingUnitUid         : 01a4a008-8ce8-4165-ba9c-cdf15a6b0501

HostingUnitName        : HostUnit1

CleanOnBoot            : True

TaskId                 : 00000000-0000-0000-0000-000000000000

Metadata               : {}

ControllerAddress      : {ddcA.citrix.com,ddcB.citrix.com,ddcC.citrix2.com}
<!--NeedCopy-->

Description

Add controller addresses to a provisioning scheme using a ProvisioningScheme object.

Add-Provschemecontrolleraddress