Citrix DaaS

Citrix DaaS for Amazon WorkSpaces Core

Introduction

This article describes how to prepare and create a deployment with Citrix for Amazon WorkSpaces Core. Amazon WorkSpaces Core resides in Amazon Web Services (AWS).

The following is the representation of the AWS implementation and its management with Citrix DaaS:

AWS architecture

Prepare and create a deployment

The deployment checklist in the Quick Deploy interface contains links to procedures 1-5.

  1. Before you start, complete the prerequisites in Citrix Cloud and AWS.
  2. Create a resource location in Citrix Cloud. (This procedure is also included as a prerequisite.)
  3. Connect your AWS account. This procedure enables permissions so that the Citrix DaaS can connect to AWS.
  4. Create a directory connection. This procedure configures a connection that allows access to your organization’s Active Directory.
  5. Import an image. This procedure enables you to create a desktop experience for your users.
  6. Create a deployment. This procedure specifies the machines to be deployed and the users who can access them through Citrix Workspace.

Before you start

Make sure you’ve completed the following tasks before you begin preparing and creating your deployment.

There is one exception: Creating a resource location in Citrix Cloud is listed as a prerequisite. It is also the first procedure in the deployment checklist. So, if you create the resource location as part of the prerequisites, skip that procedure in the checklist sequence. Similarly, complete that procedure in the checklist if you didn’t do it earlier.

Prerequisites to complete in Citrix Cloud

Prerequisites to complete in AWS

  • Create an AWS user account. The account must have:
  • In your Active Directory:
    • Use the AD Connector option to store and manage information. For more details, see AD Connector.
    • Create an OU where VMs are created. That OU must have a Citrix policy for communication with the Cloud Connectors and Citrix Cloud. See the Reference section for details.
    • Set up a group policy for the Citrix Cloud Connector configuration:
      1. Download the latest Group Policy Management Console provided by Citrix (CitrixGroupPolicyManagement_64.msi) from the Citrix download site.
      2. Install the MSI (that machine must have the Visual Studio 2015 runtime installed). Then create a Citrix policy that contains the Controllers policy setting. That setting specifies the Cloud Connector addresses.
  • Create or use an existing NAT gateway. For more information, see NAT gateway.
  • Create or use one or more existing security groups that allow the Citrix Cloud Connectors to communicate with the deployed VMs. For more information, see Control traffic to your AWS resources using security groups
  • Open an AWS Support ticket to enable BYOL on your account. To get started, contact your AWS account manager or sales representative, or contact the AWS Support Center. Your contact will verify and enable BYOL. For more information, see Enable BYOL for your account for BYOL using the Amazon WorkSpaces console.

    Note:

    Windows 10 N and Windows 11 N versions are not supported for BYOL currently.

    • Using the Citrix DaaS for Amazon WorkSpaces Core feature will automatically enable the Bring Your Own Protocol (BYOP) feature in AWS WorkSpaces Core.
    • Have sufficient Windows 10 licenses for the desktops that will be created. For more information, see Bring Your Own Windows desktop licenses.

General preparation

Review each procedure before you start. Benefit: This will help the processes to be completed easily.

Create a resource location

You create a resource location in Citrix Cloud.

  • A resource location contains two or more Cloud Connectors that communicate with Citrix Cloud. The servers on which you install the Cloud Connectors must be in an EC2 VPC, domain-joined, and have Internet connectivity. The Cloud Connectors must be in the same VPC as the directory you plan to use.
  • For more information on Cloud Connectors, see Citrix Cloud Connector and how to provision them.
  • The resource location can also contain your Active Directory servers. For more information, see Connect Active Directory to Citrix Cloud.

Connect your AWS account

This procedure enables permissions for the Citrix DaaS to connect to AWS.

To create AssumeRole for AWS WorkSpaces Core, follow these steps:

  1. In Citrix DaaS, under Manage > Quick Deploy > Accounts, click Connect account.
  2. In the Connect AWS account page, under Confirm prerequisites, click Download AWS CloudFormation Template. After the template is downloaded, click Next.

    download AWS CloudFormation template

  3. To upload the template, see Create AssumeRole for AWS Workspace Core integration.
  4. In the Authenticate account page, add the Amazon Resource Name (ARN) generated in the Role ID field, provide a name in the Name field, and click Next. The Pick region page opens.

    Role ID corresponds to the ARN of the role that will authorize Citrix to manage the resources. The Role ID can be found in the AWS management console by navigating to IAM > Roles.

    If you are using the CloudFormation script, then navigate to CloudFormation and click the corresponding stack that was used to create the role. Navigate to the Resources tab and click the resource with LogicalID CitrixAssumeRole.

    Note:

    You cannot connect two accounts on the same region for the same AWS account.

  5. On the Pick region page, select the region you want to deploy your desktops and click Next.

    Note:

    If you choose a region that doesn’t have BYOL set up, your account has access only to default tenancy images and shared directory connection tenancy. After BYOL is set up in this region, your account will gain access to images from the EC2 environment and dedicated directory connection tenancy.

  6. (The step appears only when you select a BYOL-enabled region) On the Configure BYOL support page, to configure the BYOL support, a management network interface that is connected to a secure Amazon network is required. Select an IP address range to search for use as that interface. Then select Display available CIDR blocks. If CIDR blocks are available in the selected search range, select an available CIDR block. A message confirms when you successfully select a search address range and available CIDR block. Click Next.
  7. In the Summary page, review the information you have specified. You can return to the earlier pages. When you’re done, click Finish. The connection process might take several hours to complete.

Create AssumeRole for AWS Workspace Core integration

  1. In your browser window, open the Amazon Web Services website and sign in.
  2. In the Search field, type cloudformation and press Enter. CloudFormation service
  3. Under Services select CloudFormation. The Stacks window opens. stacks
  4. Click Create stack > With new resources (standard) at the top right corner. The Create stack window opens.
    1. Under Prerequisite – Prepare template, select Template is ready.
    2. Under Specify template, click Upload a template file > Choose file and click Next. The Specify stack details pane opens.
  5. In the Specify stack details pane, provide a Stack name and AssumeRoleName and click Next. The Configure stack options pane opens. specify stack details

Note:

  • In the Configure stack options pane, select the Preserve successfully provisioned resources option. This option preserves the state of successfully provisioned resources. Resources without a last known stable state are deleted upon the next stack operation. stack failure options

  • In the Capabilities pop-up window, select the I acknowledge that AWS CloudFormation might create IAM resources with custom names check box and click Create stack. capabilities Stack creation might fail at the end because workspace_DefaultRole has already been created. This does not affect the AssumeRole creation.

  1. The Events tab shows the status of the Stack created.
  2. In the Resources tab, select the Physical ID corresponding to the AssumeRole created. resources
  3. The Summary pane shows the Amazon Resource Name (ARN) generated. summary
  4. Resume the procedure from step 4 in Connect your AWS account

Create a directory connection

Note:

Deregister your AWS Directory at the beginning of this step. After you create a Directory Connection with Citrix DaaS, the selected directory gets registered to create Amazon WorkSpaces with Citrix DaaS.

This procedure creates a connection that allows access to your organization’s Active Directory.

Prerequisites:

  • A resource location containing two Cloud Connectors.
  • A security group.
  • An OU in your Active Directory.

For prerequisite details, see Before you start.

You can start this procedure from one of two places:

  • A link on the Get Started checklist.
  • From Studio, select Quick Deploy in the left pane, Directory Connections under the Amazon WorkSpaces Core section. Then select Create Directory Connection.

Follow the Create directory connection sequence:

  1. Connect directory: Select the account from the drop down. Select either Dedicated or Shared for the tenancy.
  2. Resource location: Select the account and directory. (The selected account must have at least one directory.)
    • Select two subnets in which the desktop machines will be deployed. The subnets must be in appropriate availability zones.
    • Specify a friendly name for this connection.
    • When you’re done, click Next.
  3. Virtual machine settings: The settings you select apply to all VMs that use this directory connection.
    • The OU selected must match the OU targeted by the Citrix Group Policy.
    • Select a security group.
    • Indicate whether you want to give administrator privileges to each user assigned to VMs.

Import an image

This procedure enables you to create a desktop experience for your users. You can now import two types of images:

  • EC2 Image - To import this image, the prerequisite is to install Citrix Virtual Delivery Agent and all its drivers. The image must also be prepared for BYOL. A BYOL script is available at: BYOLChecker.zip.
  • Workspace Image - To import this image, the prerequisite is to install Citrix Virtual Delivery Agent and all its drivers.

To import the image, follow the steps:

  1. In Web Studio > Quick Deploy, click Images.
  2. In My Images, click Import Image.
    1. Prerequisites: Provides the prerequisites details for EC2 image and Workspace image. Click Next: Choose image.
    2. Choose image

      • Provide a friendly name for the image.
      • Select an account.
      • In the Image drop down you can select EC2 or WSI type of images.
        • If you select EC2, then choose the application to install from the Application drop down and click Next: Summary. EC2 type images support only single-sessions.
        • If you select WSI, then ensure that the session support and ingestion process align with the image setup. Although, a mismatch does not overwrite the image’s settings, but may cause deployment failure due to incompatibility. Select session support as single or multi-session.
      • Provide a description and click Next: Summary.
      • Click Next. The Summary page opens.
  3. In the Summary page review the information you provided and click Import Image.

    Note:

    Importing an image might take several hours.

  4. Select any image and click View Detail. The details page shows the options selected while creating the images such as, Account, Session support, Tenancy, Applications, and others.

Note:

When you create a deployment, in the Image and performance page:

  • If the Directory connection selected has a dedicated tenancy, then the images listed are only single-sessions. In the Desktops page you can choose to create desktops with or without assigning users.
  • If the Directory connection selected has a shared tenancy, then the images listed are both single and multi-sessions. If you select an image with multi session, then in the Desktops page, only Create desktops without assigning users option is enabled.

Requirements for Dedicated Tenancy Images

  • The images must be either Windows 10 Pro or Windows 11 Pro.
  • Run the BYOLChecker script during the image preparation.
  • The image can only be set in single-session support.
  • When creating an AMI image in EC2, the snapshot should be unencrypted.
  • The default ingestion protocol during image import is regular. However, customers can opt for the graphical G4DN ingestion protocol, which installs additional drivers and requires higher-tier machines.
  • During image import, customers can add an office application to be installed. This will limit workspace creation to preassigned users deployment.
  • The images require the directory connection to be set as dedicated.
  • You can create preassigned single-session deployments or decoupled (pooled) single-session deployments.

Requirements for Default or Shared Tenancy Images

  • Select the Windows Server BYOP bundle to create a workspace.
  • The workspace must be unencrypted, and only the Always On mode is supported.
  • Connect to the workspace from the connector using the private IP address via RDP and log in with the same user credentials the workspace is assigned to. The image cannot be saved if there are multiple user profiles on the machine.
  • Install VDA and run the image checker application.
  • VDA can be configured as either single-session or multi-session.
  • Restart the workspace and save it as an image.
  • After the image is saved, it can be imported into the Citrix environment.
  • The default ingestion protocol during image import is regular. However, if the base bundle was G4DN-based, you can opt for the graphical G4DN ingestion protocol.
  • The images require the directory connection to be set as shared.
  • If you set up and saved the image as a single-session, you can create preassigned single-session deployments or decoupled (pooled) single-session deployments.
  • If you set up and saved the image as a multi-session, you can only create decoupled (pooled) multi-session deployments.

OS, Directory Type, and Session Support Compatibility

Image Session Support AWS Directory Tenancy Deployment Type Persistence
Windows Desktop 11 Pro Single-Session Dedicated Dedicated or Pooled Persistent
Windows Desktop 10 Pro Single-Session Dedicated Dedicated or Pooled Persistent
Windows Server 2022 Multi-Session Shared Pooled Persistent
Windows Server 2022 Single-Session Shared Dedicated or Pooled Persistent
Windows Server 2019 Multi-Session Shared Pooled Persistent
Windows Server 2019 Single-Session Shared Dedicated or Pooled Persistent

Note:

All instances are persistent and using the pools feature, the instances are assigned on the first use basis. The instances remain provisioned without an assigned user. When a user logs in for the first time, that instance is assigned to the user for all future logins.

Integrate Microsoft Office 2019 Image when importing an image

To integrate Microsoft Office 2019 image while importing an image:

  1. In Web Studio > Quick Deploy, click Images.
  2. In My Images, click Import Image.
  3. In Import Image > Prerequisites, click Next: Choose Image.
  4. In Import Image > Choose image:
    • Select an account from the Account dropdown.
    • Select an AMI from the AMI dropdown.
    • Enter the name of the image in the Name field.
    • Select the Include Microsoft Office 2019 Professional Plus in the image.
    • Enter a description in the Description field.
  5. In Import Image > Choose image, click Next: Summary.
  6. In Choose Image > Summary, ensure that Selected appears for Microsoft Office 2019.
  7. In My Images, click Import Image. The status of the recently deployed image displays importing until the import operation completes.
  8. In My Images, select the recently deployed image and click View Detail.
  9. In the Detail panel, the Microsoft Office 2019 field displays Included.

Note:

Only the following versions of the OS are compatible:

  • Windows 10 Version 21H2 (December 2021 Update)
  • Windows 10 Version 22H2 (November 2022 Update)
  • Windows 10 Enterprise LTSC 2019 (1809) (1809)
  • Windows 10 Enterprise LTSC 2021 (21H2) (21H2)
  • Windows 11 Version 22H2 (October 2022 release)

Create Custom Image from an existing Workspace Instance

To create a custom image for a user:

  1. In Web Studio > Quick Deploy, select Deployments.
  2. Select the deployment containing machines you want to manage and click View detail.
  3. In the Deployment pane, under the Users tab, select the User whose workspace state is available and click Create custom image.

    Deployment pane

    Note:

    You can create a custom image only for the deployment whose workspace state is available.

  4. In the Create custom image pane:

    • Verify the Image properties, OS and Account information of the selected user.
    • Note the warning message that indicates the time the desktop deployment will be in maintenance mode during the process.
    • Fill the mandatory fields like Image name and Description. The Image name field suggests the allowed characters for image names.
  5. Click Create. The Images node window opens.
  6. Click the Refresh button. The newly created custom image is listed with the Status as Pending.
  7. Select the custom image and click View Detail. The Image window opens with details like Status, Account, ID, OS, and Description.
  8. Click Deployments in the left navigation. The Status of the new deployment shows as Updating.
  9. Select the new deployment and click View detail.

    • In the Deployment pane, the Maintenance tab shows as On.

    Maintenance on

As a best practice:

  • Use a separate Virtual Private Cloud (VPC) that is not connected to your production environment.
  • For Windows WorkSpaces, avoid configuring any Group Policy Objects (GPOs) prior to creating the image. For more information, see Best practices.
  • Use a dedicated AD Connector for image creation.
  • Use a dedicated OU in the Active Directory for image creation. For more information, see Best practices for successful BYOL image creation for Amazon WorkSpaces.

Create a deployment

A deployment is a group of desktops that users can access from their Citrix Workspace. This procedure specifies the characteristics of the virtual machines to be deployed as desktops, and which AD users can use them.

Note:

The computer name is set by Amazon when the workspace is created and is used as an identifier to ensure accurate workspace data. You cannot modify the computer name using Citrix DaaS for Amazon Workspaces Core.

Prerequisites

Complete all the steps listed in Prepare and create a deployment.

  1. In Web Studio > Quick Deploy, click Deployments in the Amazon Web Services column. Click Create deployment.
  2. In the Image and performance page,
    1. if you select a dedicated tenancy, as the Directory connection, then the image drop down lists the images that have Dedicated tenancy. Images with Dedicated tenancy support only single-sessions.
    2. if you select a shared tenancy as the Directory connection, then the Image drop down lists the images that have Default tenancy. Images with Shared tenancy support both single and multi-sessions.
    3. Select the Performance and Root volume sizes. Click Next: Encryption.
  3. Encryption: In the Select encryption key preference section:
    1. The Use AWS managed KMS key option is selected by default. This encrypts both root and user volume and is managed by AWS.
    2. If you select the Use customer managed key option, ensure to first create the key in AWS Key Management. Once created, enter the key into the Key Alias field and click Next: Desktops.

    Note:

    Encryption keys can be found in the Key Management Service (KMS) console under AWS managed keys or Customer managed keys.

  4. Desktops:
    1. A new option to select Create desktops without assigning users is added. For this option, specify the number of desktops you want to add to the deployment. The Desktop assignment type for this option is Random pool unassigned. Click Next: Summary.

    Note:

    The Create desktops without assigning users option is not available for images with AWS provided applications. Therefore, you must assign users while creating desktops.

    1. If you select the existing Assign users while creating desktops option, search and select the users who will be allowed to access the desktops. If you want to customize the volume sizes for a user, select Edit user and root volume sizes, and then specify the sizes. The Desktop assignment type for this option is Static preassigned. Click Next: Summary.
  5. Summary: Review the information you provided and provide a Deployment name. Click Create deployment. The Deployment page shows the new Desktops column with the assigned desktop details.
  6. Select a deployment and click View detail. The deployment details page shows three tabs:
    1. Desktops: Select a desktop and the settings to modify is displayed.
    2. Users: This tab is available only for unassigned deployments to assign users or groups to launch the desktop. Click Add. Update the required settings and click Find now. You can select more than one user from the table and click Ok > Done. You can add more users and also delete an existing user by selecting appropriate options.
    3. Configuration: This tab shows the assignment type of the selected desktop. If it is an unassigned desktop, then the Desktop assignment type is Random pool unassigned.

Integrate Microsoft 365 Windows apps

To integrate Microsoft 365 Apps, see Microsoft 365 Apps for enterprise now available on Amazon WorkSpaces services and Microsoft 365 Bring Your Own License (BYOL).

Manage machines in a deployment

In addition to the machine management features described in Manage machine catalogs, for some actions, you can select machines to manage from a deployment.

To manage machines in a deployment:

  1. In Web Studio > Quick Deploy, select Deployments.
  2. In the Deployments pane, select the deployment containing machines you want to manage.
  3. Click View details.
  4. In the Deployment details pane, select the machine you want to manage.
  5. From the actions displayed, select the action you want to perform on the machine:
  • Click Edit volume size to change the volume size of the machine.
  • Click Delete to delete the machine from the deployment and AWS. If a machine is in a delivery group, it can be deleted only if it is maintenance mode.
  • Click Turn maintenance mode on/off to turn maintenance mode on (if it is off) or off (if it is on) for the machine.

Reference

AWS account programmatic access permissions

The AWS user account must have certain programmatic access permissions to make API calls to the AWS resource layer. Programmatic access creates an access key ID and a secret access key. You can create a policy containing these permissions in the IAM console. As shown in the following graphics, you can use the visual editor (adding the permissions one by one) or the JSON (adding the snippet below). For more information, see Creating an IAM user in your AWS account.

  • On the Visual editor tab, add the permissions one-by-one.

    Create policy

  • On the JSON tab, add the snippet shown after the following graphic.

    Create policy in JSON

Required permissions

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0", 
            "Effect": "Allow", 
            "Action": [
                    "workdocs:DeregisterDirectory",
                    "workdocs:RegisterDirectory",
                    "workdocs:AddUserToGroup",
                    "ec2:ImportInstance",
                    "ec2:DescribeImages",
                    "ec2:DescribeImageAttribute"
                    "ec2:CreateKeyPair",
                    "ec2:DescribeKeyPairs",
                    "ec2:ModifyImageAttribute",
                    "ec2:DescribeVpcs",
                    "ec2:DescribeSubnets",
                    "ec2:RunInstances",
                    "ec2:DescribeSecurityGroups",
                    "ec2:CreateTags",
                    "ec2:DescribeRouteTables",
                    "ec2:DescribeInternetGateways",
                    "ec2:CreateSecurityGroup",
                    "ec2:DescribeInstanceTypes",
                    "servicequotas:ListServices",
                    "servicequotas:GetRequestedServiceQuotaChange",
                    "servicequotas:ListTagsForResource",
                    "servicequotas:GetServiceQuota",
                    "servicequotas:GetAssociationForServiceQuotaTemplate",
                    "servicequotas:ListAWSDefaultServiceQuotas",
                    "servicequotas:ListServiceQuotas",
                    "servicequotas:GetAWSDefaultServiceQuota",
                    "servicequotas:GetServiceQuotaIncreaseRequestFromTemplate",
                    "servicequotas:ListServiceQuotaIncreaseRequestsInTemplate",
                    "servicequotas:ListRequestedServiceQuotaChangeHistory",
                    "servicequotas:ListRequestedServiceQuotaChangeHistoryByQuota",
                    "sts:DecodeAuthorizationMessage",
                    "ds:*",
                    "workspaces:*",
                    "iam:GetRole",
                    "iam:GetContextKeysForPrincipalPolicy",
                    "iam:SimulatePrincipalPolicy"

                ],
                "Resource": "*"
            }
        ]
}
<!--NeedCopy-->
Citrix DaaS for Amazon WorkSpaces Core