Install Cloud Connectors from the command line

You can install the Citrix Cloud Connector software interactively or using silent or automated installation.

During installation, the Cloud Connector requires access to the cloud to authenticate the user installation. Validate the installer’s permissions, download, and configure the services the Cloud Connector provides. The installation occurs with the privileges of the user who initiates the install.

Important:

Using the same installer for repeated installations over a period isn’t recommended. Download a new Cloud Connector from the Resource Locations page in the Citrix Cloud Government console.

Requirements

To use the command-line installation with Citrix Cloud Government, you need to supply the following information:

  • The customer ID of the Citrix Cloud Government account for which you’re installing the Cloud Connector. This ID appears at the top of the API Access tab in Identity and Access Management.
  • The client ID and secret of the secure API client you want to use to install the Cloud Connector. To acquire these values, you must first create a secure client.
    • The client ID and secret ensures that your access to the Citrix Cloud API is secured appropriately. When you create a secure client, the client operates as much with administrator permissions that you have.
  • To install a Cloud Connector, you must use a secure client with a Full Access administrator also a full access permission.
  • The resource location ID for the resource location that you want to associate with the Cloud Connector. To retrieve this value, select the ID button located beneath the resource location name on the Resource Locations page. If you don’t supply this value, Citrix Cloud Government uses the ID of the default resource location.

Create a secure client

When creating a secure client, Citrix Cloud Government generates a unique client ID and secret. You must supply these values when API calls through the command line.

  1. From the Citrix Cloud Government menu, select Identity and Access Management and then select API Access.
  2. From the Secure Clients tab, enter a name for your client and select Create Client. Citrix Cloud Government generates and displays a client ID and secret for the secure client.
  3. Select Download to download the client ID and secret as a CSV file and store it in a secure location. You can also select Copy to manually acquire each value. When finished, select Close to return to the console.

Supported parameters

Make sure the security of the secure client details, a JSON configuration file must be provided to the installer. This file must be deleted after the installation has completed. Supported values for the configuration file are:

  • customerName Required. The customer ID shown on the API Access page in the Citrix Cloud Government console.
  • clientId Required. The secure client ID that an administrator can create, available on the API Access page.
  • clientSecret Required. The secure client secret that can be downloaded after the secure client is created. Available on the API Access page.
  • resourceLocationId Recommended. The unique identifier for an existing resource location. Select the ID button to retrieve the resource location ID on the Resource Locations page in the Citrix Cloud console. If no value is specified, Citrix Cloud uses the ID of the first resource location in the account.
  • acceptTermsOfService Required. Must be set to true.

A sample configuration file:

{
"customerName": "*CustomerID*",
"clientId": "*ClientID*",
"clientSecret": "*ClientSecret*",
"resourceLocationId": "*ResourceLocationId*",
"acceptTermsOfService": "true",
}
<!--NeedCopy-->

A sample command line that installs using the parameter file:

CWCConnector.exe /q /ParametersFilePath:c:\cwcconnector_install_params.json
<!--NeedCopy-->

Use Start /Wait CWCConnector.exe /ParametersFilePath:value to examine a potential error code if there’s a failure. You can use the standard mechanism of running echo %ErrorLevel% after the installation completes.

Troubleshooting

Installation Logs

Installation logs are available at %LOCALAPPDATA%\Temp\CitrixLogs\CloudServicesSetup.

Also, logs are added to %ProgramData%\Citrix\WorkspaceCloud\InstallLogs after installation.

Exit codes

  • 1603 - An unexpected error occurred.
  • 2 - A prerequisite check failed.
  • 0 - Installation completed successfully.

Considerations for cloned machines

Each machine hosting the Cloud Connector must have a unique SID and connector ID so that Citrix Cloud Government can communicate reliably with the machines in your resource location. Installing the Cloud Connector on a machine template (before cloning) is not supported. If you clone a machine with the Cloud Connector installed, the Cloud Connector services don’t run and the machine cannot connect to Citrix Cloud Government.

If you intend to host the Cloud Connector on multiple machines in your resource location and you want to use cloned machines, perform the following steps:

  1. Prepare the machine template according to the requirements for your environment.
  2. Provision the number of machines that you intend to use as Cloud Connectors.
  3. Install the Cloud Connector on each machine, either manually or using the silent installation mode.
Install Cloud Connectors from the command line