by Uddave Jajoo, CTA & Indianapolis CUGC Leader
Recently there is a huge uptake in deployments in the public cloud environment, as every enterprise is taking their first step forward to the cloud journey. In similar way, there is also change of mindset within the business organization to adopt for these cloud technologies and migrate their apps and servers to cloud.
Whenever it comes to migration of any app or infrastructure to cloud, always consider the 6 R’s of migration:
The “6 R” Requirements
- Azure Subscription to host workloads in any region.
- Service Principal in Azure (granted contributor access on subscription)
- Shared Image Gallery in Azure.
- Allow Policy exemption for subscription in case there is any policy restrictions applied from the management group level.
- Citrix Cloud Connector servers configured within the Azure Subscription.
- Allowed communication from Azure vNet to the Citrix Cloud Services.
Considering Refactoring as one of the strategies of migration, I started working on a project to integrate Citrix Cloud with Azure and enable to provision MCS persistent desktops in cloud. In this blog, I am going to highlight some options available within the MCS catalog creation wizard, which lets admins provision catalogs in two different ways.
Environment details are below for reference:
- 2 Cloud connector servers pointing to Central US based resource location
- Hosting connection created in Citrix DAAS console pointing to Central US region
- Created image version from the Win10 22H2 Image in dedicated resource group using Image definition within the shared image gallery
- Dedicated Persistent machine catalog with 5 desktops in the pool, dedicated delivery group with AutoScale enable
Note – Before I share the steps on deploying a catalog using SIGs or snapshots, I would like to highlight one specific issue observed in Azure while creating catalogs with higher number of VMs. I did create a case with #Citrix and #Microsoft for this issue and currently they are working on increasing the throttling value from the Azure end. I was running with errors every time while deploying more than 40+ VDIs in a machine catalog. So, if you are targeting to deploy more than 40 machines at once in Azure with MCS provisioning, please select the option to Place image in Shared Gallery while deploying the catalog.
Create MCS Persistent Catalog Using the Shared Image Gallery Option
This setting is documented within the Citrix Article – create-machine-catalog-citrix-azure.
James Kindon also created a very good article on this: Shared Image Gallery – citrix-mcs-and-azure-shared-image-gallery/
Azure Shared Image Gallery (SIG) is a repository for managing and sharing images. It lets you make your images available throughout your organization. It’s recommended to store an image in SIG when creating large non-persistent machine catalogs because that enables faster resets of VDA OS disks. After you select Place image in Azure Shared Image Gallery, the Azure Shared Image Gallery settings section appears, letting you specify more SIG settings:
Ratio of virtual machines to image replicas lets you specify the ratio of virtual machines to image replicas that you want Azure to keep. By default, Azure keeps a single image replica for every 40 non-persistent machines. For persistent machines, that number defaults to 1,000.
Maximum replica count lets you specify the maximum number of image replicas that you want Azure to keep. The default is 10.
Follow through the steps outlined in the below section:
Create MCS Catalog Pointing to the Image Snapshot (with the exception of step 8 when utilizing the Shared Image Gallery):
In the Storage and License Types tab, select the default options for Premium SSD or Standard HDD (for better cost savings select the Standard HDD) & Use My Windows Client Licenses.
Check the option for Place Image in Azure Shared Gallery and set the Ratio to 40 to 10.
Note: It refers to the image replica being created for N number of VMs to be created within the catalog. Based on the setting above, it would utilize 1 replica to provision 4 VDIs at a time.
Create MCS Persistent Catalog Using Image Snapshot
- Login to Citrix cloud console and navigate to Machine Catalogs tab.
Select Create Machine Catalog, click Next.
- In the Machine Type select Single Session OS.
- In the Machine Management tab, select the required hosting connection pointing to Azure subscription.
Select Option: This machine catalog will use machines that are power managed.
Select Option: Deploy machines using Citrix Machine Creation Services (MCS).
Select the correct resource for the machine catalog.
- In Desktop Experience Tab Select below options:
Static Desktop Pool Provisioning: I want users to connect to the same (static) desktop each time they log on
Yes, create a dedicated virtual machine and save changes on the local disk
Random Desktop Pool Provisioning: I want users to connect to a new (random) desktop each time they log on.
No, discard all changes and clear virtual desktops when the user logs off.
- In the Master Image tab, select a managed disk, snapshot of VHD that you want to use as master image for all the machines in this catalog.
- Click on Select an Image
In Select an Image tab, expand the required Azure resource group to point to the respective Image snapshot. It will display the list of OS disks, snapshot and any image versions created within your shared image gallery.
Resource group name: udjajoo-ctx-cs-win10
Shared Image gallery: udjajooctxsharedimagegallery
Image Definition name: udwin1022h2
Select the respective Snapshot within the resource group and click Done
Note: If vTPM is enabled on the master image, it would prompt to select the Machine profile as well.(Highly recommended to secure the OS with the trusted platform module.)
Select the image profile pointing to the master image.
- In the Master Image tab, select the Minimum functional level for this catalog as 2206 (or later), this would be dependent on VDA version installed on the image.
- In Storage and License Types tab, select the default options for Premium SSD (For better cost savings please select the Standard HDD) & Use My Windows Client Licenses.
Leave the option unchecked for Place Image in Azure Shared Gallery.
- In the Virtual Machines tab, select the below:
Number of Virtual Machines: 5 (For my testing)
Machine Size: Select Standard D2s v5 (2 vcpus, 8 GiB memory)
In the availability zone, depending on the availability, we could select all three or just one or two.
- In the NICs tab, select the required VNET with free IPs.
In the Disk Settings, check the box for Enable Storage Cost Savings.
This helps in downgrading storage type for VMs during shutdown deallocation process and change it back to regular during power on. Thus, more cost saving.
- In the Resource Group tab, select the option to Use an existing resource group to provision machines.
- In Machine Identities Tab, select the below:
Identity Type: On Premises Active Directory
Select an Active Directory account option: Create New Active Directory Accounts
Specify the name for the machine accounts you want to be created- udjajooctxw10-##
In Domain Credentials tab, enter the required credentials to authenticate to Active Directory. Click Enter Credentials.
In the next window, use the required account with privileges to create the AD computer account.
In Scopes tab, leave with Default All.
- In the WEM (Optional) tab, select the required configuration set for the machine catalog.
Or, leave it default without selecting any configuration set and select later post Machine Catalog creation in the Citrix Cloud Console.
In VDA Upgrade (Optional) tab, select the options to enable automatic VDA upgrade depending on the CR or LTSR VDA version.
- In Summary tab, review all the configurations and enter the Machine Catalog Name: UD-CTX-W10-22H2-Test and Description: Test Pool.