Showing posts with label Azure Classic. Show all posts
Showing posts with label Azure Classic. Show all posts

Wednesday, August 24, 2016

How to: Citrix Machine Creation Services and Microsoft Azure Resource Manager

In January of this year I wrote a how-to blog about Machine Creation Services and Microsoft Azure Classic. Citrix has updated their Machine Creation Services to support Microsoft Azure Resource manager. At the time of writing this MCS update is only available for customers who are using “Citrix Cloud | XenDesktop and XenApp Services”. Those who have a traditional on-prem XenDesktop 7.7, 7.8 or 7.9 set-up only have the option for Microsoft Azure Classic at the moment.

This blog is a step-by-step guide about how to provision machines in Microsoft Azure using Machine Creation Services. This blog describes the creation of a hosting connection to Microsoft Azure and making a new Machine Catalog with three new Windows 2012 R2 Session Host machines based on the Golden Master.


Citrix XenDesktop configuration
For this guide I have setup a basic Citrix Cloud setup with IaaS VMs in Microsoft Azure (Resource manager):
  • Citrix Cloud | XenDesktop and XenApp Services
  • Citrix Cloud Connector Virtual Machine
  • Established connection between Citrix Cloud and Citrix Cloud Connection (Resource location and Domain connection)
 
Master Image Configuration
The Master image, used in this guide, is configured as follows:
  • Azure Resource Manager Virtual Machine A2
  • Azure virtual network name "VN_172.16.0.0-24"and Subnet name "SN_172.16.1.0-24"
  • Windows 2012 R2 Session Host
  • Citrix XenDesktop 7.9 VDA
  • LibreOffice 5.2
  • Notepad++
  • VLC Media player
Creating Azure Hosting connection in Citrix Cloud | XenDesktop and XenApp Services
 
1. Browse to https://portal.azure.com and click Subscriptions. Write down your Azure Subscription ID


2. Browse to https://citrix.cloud.com and go to XenApp and XenDesktop Services


3. Click Manage and go to Hosting. Click Add Connection and Resources

4. Select connection type Microsoft Azure
5. Enter your Azure subscription ID (step 1) and give the connection a name. Then click Create new..


6. Login with your Microsoft Account which has access to your Microsoft Azure subscription


7. Verify the login. If you have a problem (like me) sending a security code, edit your Microsoft account for mobile app “Microsoft Account” verification (https://account.live.com/proofs/Manage)


8. Accept Citrix XenDesktop permissions


9. Click Next


10. Select the Azure region for this hosting connection and click Next


11. Select your virtual network and subnet, click Next


12. Click Finish


13. The hosting connection to Microsoft Azure Resource Manager is completed


Create new Machine Catalog
Like using Citrix Machine Creation Services with on-premises Hypervisor we need to install a master VM and shut it down. There is no need to create a snapshot (hypervisor) or capture (azure classic). In this example I’ve used master virtual machine AzureCTXGM.
1. Install your Golden Master VM with software and Citrix VDA. When finished shut the machine down and power off (deallocated)


2. Browse to Citrix Cloud | XenApp and XenDesktop Services and go to Machine Catalogs. Click Create Machine Catalog


3. Select type of Operating System (in this example Server OS) and click Next

4. Select Machines that are power managed and select Citrix Machine Creation Services, click Next

5. Select the VHD of the Golden Master VM and click Next

6. Select the destination storage type for your provisioned virtual machines and click Next


7. Select the amount of machines (i.e. 3) to create and select the Microsoft Azure Machine size (i.e. Standard_A2). Click Next


8. Select the network card and associate it with the Azure Subnet name for your Citrix Machines (i.e. SN_172.16.1.0-24), click Next

9. Select Create new Active Directory accounts. Then select the OU for the new machines. And fill in an Account naming scheme for the new machines (use ## for auto increment numbers)


10. Enter your domain account credentials, and click next (this account is used to create the computer accounts)

11. A summary is displayed. Fill in a Machine Catalog name and a Machine Catalog description for administrators and click Finish

12. The Machine Catalog is copying the master image to a base disk


13. The Virtual Machines are created


14. A new storage account is created on Azure
15. While MCS is deploying the virtual machines, a preparation VM with VHD is temporary created on Azure
16. When MCS finishes, the following VHDs are created for 3 VMs (ARM-XDSH-##)

 
You are now able to create a Delivery Group.
 

Sunday, January 31, 2016

How to: Citrix XenDesktop 7.7 Machine Creation Services and Microsoft Azure

This blog is an step-by-step guide about how to provision machines in Microsoft Azure using Citrix Machine creation services. This blog describes the creation of a hosting connection to Microsoft Azure, making a capture of the master machine and creating a new Azure Machine Creation Catalog with three new Windows 10 Machines, creating a Delivery Group and give some insight into the MCS Azure proces.

Citrix XenDesktop 7.7 configuration

For this guide I have setup a basic Citrix XenDesktop 7.7 installation in Azure:
Active Directory Domain Controller
  • SQL-Server
  • Desktop Delivery Controllers
  • StoreFront servers
  • NetScalers
I tried to use as much as Azure SaaS services for this set-up, but I didn’t used one. Everything is configured as Azure IaaS virtual machines. (For example: SQL Databases in Azure only allows SQL Authentication. XenDesktop only uses AD-integrated authentication)
 

Master Image configuration

The Master image, used in this guide, is configured as follows:
  • Azure Classic Virtual Machine A2
  • Azure virtual network name “AMS_Network” and Subnet name “VMSubnet1”
  • Windows 10 Enterprise
  • Citrix XenDesktop 7.7 VDA
  • Office 2013
  • Notepad++

Azure and Azure Classic

At the moment two types of virtual machines can deployed in Azure: “Virtual machines” and “Virtual machines (classic)”.






The classic virtual machines are managed originally by the old Azure management portal (manage.windowsazure.com) and the new virtual machines are managed by the new Azure management portal (portal.azure.com). The new portal can also manage classic virtual machines. It is good to understand that Citrix Machine Creation Services only provisions Microsoft Azure Classic Virtual machines. New style virtual machines is not possible at the moment.
 
Classic manage.windowsazure.com portal:





New portal.azure.com













Create Azure Hosting connection in Citrix Studio

1. Goto https://manage.windowsazure.com/publishsettings/index and download your publishsettings file. (If prompted for login, login with your Azure credentials:
 
2. Open Citrix Studio:

 
 
 
 
 
 
3. Go to Configuration --> Hosting and click Add Connection and Resources
    
4. Choose connection type: Microsoft Azure Classic and click on Import
 
5. Select the publishsettings file downloaded at step 1
 
6. Your Azure Subscription ID will appear, give the connection a name like MSAzureConnection and choose Machine Creation Services. Click Next:
 
7. Select an Azure region where the virtual machines will be stored and click Next
 
8. Select the Azure Virtual Network and select the Azure Subnet you want to use for your virtual machines, click Next
 
9. Click Finish to create the Azure connection
  
10. The connection to Azure is created:


Create new Machine Catalog

Like using Citrix Machine Creation Services with on-premises Hypervisor we need to install a master VM, shut it down and create a snaphot. On Microsoft Azure we need to create a “Capture”. This Capture is used to create new Virtual Machines. In this example I’ve used master virtual machine AZ-W10-GM.
 
1. Go to Virtual Machines on manage.windowsazure.com, select the Master VM and click Capture
 
2. Give the Capture an Image name and Image Description and click V (Do not select I have run Sysprep on the virtual machine)
  
3. Wait until the captured image is in the available state
 
4. Open Citrix Studio

 
 
 
 
 
 
5. Click Machine Catalogs and click Create Machine Catalog
 
6. Select type of Operating system (in this example Desktop OS) and click Next
 
7. Select Machines that are power managed and select Citrix Machine Creation Services, click Next
 
8. Choose your type of Desktop Experience and click Next
 
9. Select the Capture of the Master Image created at step 1, than select the 7.7 VDA version and click Next
 
10. Select the amount of machines (i.e. 3) to create and select the Microsoft Azure Machine size (i.e. Basic_A2). Click Next
  
11. Select the network card and associate it with the Azure Subnet name for your Citrix Machines (i.e. VMSubnet1), click Next
  
12. Select Create new Active Directory accounts. Then select the OU for the new machines. And fill in an Account naming scheme for the new machines (use ## for auto increment numbers)
 
13. A summary is displayed. Fill in a Machine Catalog name and a Machine Catalog description for administrators and click Finish
 
14. The Machine Catalog is copying the master image (capture) to a capture likeWin10-Azure-MCS-baseDisk-128ti

 
 
15. Like the on-premises MCS a Preparation VM (Preparati-lg5gl) is starting and prepares the MCS basedisk for deployment
 
16. After preparation, MCS is creating the MCS virtual machines
 
 
17. Each machine gets an Operating System and Identity disk
 
18. The Microsoft Azure MCS Machine Catalog is created
 
19. Total duration of deployment:
 

Creating a delivery group 

1. Open Citrix Studio
 

  
2. Click Delivery Groups and click Create Delivery Group
 
3. Select the amount of machines you want to add from the Win10 Azure MCS Machine Catalog and click Next
 
4. Select Delivery type, in this example Desktops and click Next
  
5. Select Users and/or Groups who need access to the Desktop and click Next
  
6. Select Manually and click Next
 
7. Type in a Delivery Group name and Display name and click Finish
  
8. The delivery group is created
 

XenDesktop power management

The power management function for VDI machines is also available for Delivery Groups with Azure MCS Machines. This feature will give you the advantage to start a number of machines in a specific period, thus allowing you to configure XenDesktop to start less machines outside business peak hours. Tuning this feature for your organization allows you to cut Azure costs, not all VDI machines need to be started 24/7.
 

Starting and rebooting random (non-persistent) VDI machines on Azure

Starting and restarting random (non-persistent) VDI machines on Azure is taking a lot of more time then rebooting an VDI machine on your on-premises hypervisor. Therefore a good tuned power management will give the best user experience for your Azure workspace.

1. When the Azure MCS Machine Catalog was created, I’ve noticed the following Virtual Machines on Azure

2. When machine W10-MCS-01 is started by the Citrix Delivery Controller, Citrix MCS first removes “the old”  W10-MCS-01 machine

 
3. Then provisions a new W10-MCS-01 machine in Azure
 

4. After that, you are able to login to your Azure VDI machine: