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:
- Site-to-site VPN
- Citrix SDWAN
- Express Route
- etc.
You will need to download the 2 following files from my GitHub repository here
- customerspecific.json
- 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
- Customer ID
- Client ID
- Client Secret
- CTX Resource Location Name
- Azure specific
- Azure Resource Group Location (Azure Region)
- Azure Virtual Network Name
- Azure Resource Group Name
- Azure Subnet Name
- OS Type (2016 or 2019)
- Cloud Connector 1 VM name
- Cloud Connector 2 VM Name
- Cloud Connector Machine Type (Azure instance)
- Cloud Connector Disk Type
- Cloud Connector local admin
- Cloud Connector local password
- On-premises Domain credentials
- Domain username (user must have permission to join server to domain)
- 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!