Migrate CVAD to CVAD Service on Azure – Automation Part 1

Azure Citrix

As I finished writing my Citrix Tech Zone article on best practices to migrate from CVAD on-premises to CVAD Service on Azure at the end of July, I started to write PowerShell scripts to automate the process.

Here after you will find details regarding the first script I decided to release. This script will allow you to automate the deployment of 2 Cloud Connector on Azure.

Prerequisites

You will need an Azure Subscription with basic Setup like Resource Group and Virtual Network.

You also need a site-to-site connectivity between your on-premises environment and Azure.

This can be achieved by:

  1. Site-to-site VPN
  2. Citrix SDWAN
  3. Express Route
  4. etc.

You will need to download the 2 following files from my GitHub repository here

  1. customerspecific.json
  2. Citrix-Azure-CC-v1.0.ps1

Note: Those 2 files need to be downloaded in the same folder.

Before you run the script

Before you run the script, you will need to fill the Json fill with your own settings.

You have some mandatory parameters and some optional, here is the list of parameters needed:

  • Retrieved from Citrix Cloud
  1. Customer ID
  2. Client ID
  3. Client Secret
  4. CTX Resource Location Name
  • Azure specific
  1. Azure Resource Group Location (Azure Region)
  2. Azure Virtual Network Name
  3. Azure Resource Group Name
  4. Azure Subnet Name
  5. OS Type (2016 or 2019)
  6. Cloud Connector 1 VM name
  7. Cloud Connector 2 VM Name
  8. Cloud Connector Machine Type (Azure instance)
  9. Cloud Connector Disk Type
  10. Cloud Connector local admin
  11. Cloud Connector local password
  • On-premises Domain credentials
  1. Domain username (user must have permission to join server to domain)
  2. Domain username password

Citrix Cloud

  • Connect to Citrix Cloud and go to Identity and Access Management.
  • Click API Access.
  • Take note of your Customer ID.
  • Provide a name and click Create Client.
  • Copy ID
  • Copy Secret

Fill the Json file

Now that you have your Citrix Cloud information, you need to fill the Json file with other information:

Note: above are example based on my Lab, you need to ensure that information are accurate based on your on-premises and Azure environments.

Run the Script

Now you can run the script, here after is a video showing the script execution

Tester and feedback needed

I am looking for tester and feedback to try to improve the script as much as possible.

Feel free to share it, test it and provide me feedback preferably within an email: arnaud.pain@arnaud.biz.

Thank you!