How to use the “Citrix provisioning devices export wizard" with Citrix Cloud

How to use the “Citrix provisioning devices export wizard" with Citrix Cloud

book

Article ID: CTX322685

calendar_today

Updated On:

Description

Describes how to use the “Citrix provisioning devices export wizard" and explains what the provisioning services console is contacting during each stage of the export


Instructions

The  “Citrix provisioning devices export wizard"  uses a 2 step process to  export devices to Citrix Cloud
  1. The remote powershell SDK authenticates directly to Citrix Cloud in order to enumerate available Host resources.
  2. The Citrix provisioning console then authenticates directly to the Host to enumerate Target device details from the host.
 
As a result the machine where the wizard is run needs to have network access to citrix cloud and network access to the hypervisor on prem.
 
The following steps give an overview of the process of exporting target devices to Citrix Cloud
 
If you have not already created a host connection:
 
  1. In the Citrix Cloud Console >  select Add Connections and Resources
  2. Select create a  new connection:
image.png
 
  1. Under connection select a hypervisor which is supported by Citrix provisioning
  1.  Under "Create virtual machines using" select Citrix provisioning tools (machine creation services or Citrix Provisioning)
  2. Select appropriate storage and network configuration in the next page
  3. Once your host connection has been created, log on to a machine with the Citrix Provisioning services console installed. 
  4. Uninstall the Citrix DaaS (formerly known as Citrix Virtual Apps and Desktops) SDK from the PVS console and install the remote powershell SDK as per:
  1. Launch the “Citrix provisioning devices export wizard" from the Citrix provisioning console > right click on the site node >  select "Export devices wizard…"
image.png
 
  1. Enter your cloud connector address  > next
  2. When prompted authenticate using your cloud credentials 
  3. It is not proxied through the cloud connector.
  4. Select the correct Cloud account:
image.png
 
 
  1. Select physical or virtual devices
  2.  Select the host connection created previously or any other supported host connection with resources (storage and network specified in the cloud UI)
  3. You will then be prompted to enter valid host credentials to authenticate directly to the Host from the PVS console:
  4. You must have direct network access between the machine where the PVS console is installed and the hypervisor.
 
image.png
 
  1. Select the device collection and targets to import
 
 
Troubleshooting:
 
If created host connections are not visible after authenticating to cloud please ensure the following:
  • The connector specified the PVS UI does not appear as down in the cloud UI
If it does host connections accessed via that cloud connector will not be available for selection.
 
  • The host connection has been created with storage and network specified.
Suitable host connections can be found by running the following command from within a PowerShell window on the machine with the remote powershell sdk installed
 
Get-childitem -LiteralPath xdhyp:\hostingunits
 image.png

 
If nothing is returned by this command you have not specified resources under this host connection
Or
The connector in the resource location where this host resides is not reachable from cloud.
 

Environment

The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.

Issue/Introduction

The “Citrix provisioning devices export wizard" uses a 2 step process to export devices to Citrix Cloud 1. The remote powershell SDK authenticates directly to Citrix Cloud in order to enumerate available Host resources. 2. The Citrix provisioning console then authenticates directly to the Host to enumerate Target device details from the host. As a result the machine where the wizard is run needs to have network access both to citrix cloud and direct network access to the on prem hypervisor .

Additional Information

https://support.citrix.com/article/CTX131239
https://docs.citrix.com/en-us/provisioning/current-release/configure/cloud-connector.html