14-04-2017 Door: Randolph Widjaja

Deploy Citrix infrastructure in Azure using automation

Deel dit bericht

In most of the projects I've been involved in, time was not on our side and deadlines had to be met. As the IT department, we are expected to create a solution infrastructure in the shortest time possible. To meet the business requirements, we need to automate various steps to win time and save effort, and do this all at breakneck speed. At the on-premises data centre, you can use Microsoft System Center, for example, to script deployment of an infrastructure solution, and in the cloud you can use Azure Automation Services to do the same.

In this blog, I’ll explain how to automate deployment of a Citrix XenApp infrastructure, including Citrix NetScaler VPX BYOL appliance, from Visual Studio.

Before we start using Visual Studio, you will need to install the Visual Studio extension:
• Azure SDK for Visual Studio

You can also download Citrix Developer SDK for Visual Studio, for example, and explore the possibilities for managing various Citrix components. Have a look at: https://www.citrix.com/community/citrix-developer.


Citrix01.jpg

Just as an aside, the Citrix Open Source project offers various SDK packages. At https://github.com/citrix you will find a lot of cool stuff to manage your Citrix infrastructure through scripting.

First create an Azure Resource Group and build a Citrix infrastructure in the Azure Cloud. Because I’m focusing on creating templates for Azure automation, we’ll use the preconfigured templates available in the Azure Marketplace. Just search (in my case as a Citrix enthusiast) for XenApp in the “new” section of your Azure portal.


02.png

When you select this template, you’ll be offered the option of downloading the complete template or just the main template (maintemplate.json). If you opt to download the complete template, a Power Shell script you can execute in your local Power Shell console is already available; keep in mind, however, that you will need to import the Azure module to execute the script. When executing the script, a popup screen will appear asking you to authenticate on the Azure Portal and allow the script to run.

Once you’ve downloaded the complete template from Azure, you can import it into Visual Studio for editing and testing. Create an empty project template in Visual Studio. Select “Cloud” and select “Azure Resource Group”.


03.png

Now you can import the Citrix XenApp 7.13 Trial template into the Visual Studio project you created. From here you can edit the parameters-template and main-template JSON files. For Example I want to change the server names of the VMs, so I can see what VMs are mine.


04.png

Save the project and import it into Microsoft System Center, for example, or deploy it from Visual Studio.


05.png


06.png

When executed in Visual Basic or start the powershell script, you can also edit the different parameters, passwords of your deployed Azure Resource Group, although it is very limited and I prefer editing in the json files itself.


07.png

You can monitor the progress of your deployment in Visual Studio output and when finished you can see your newly deployed Azure Resource Group in the Azure Cloud.

This looks fun, and it is too. With Azure automation, Microsoft has created a solution that is simple to implement and that makes it easy to edit various variables prior to multiple deployments in the Azure Cloud. You can create runbooks for deploying hybrid infrastructures or different kind of other services in the Cloud.

Company:

Centric

Randolph Widjaja

Randolph Widjaja is bij Centric werkzaam als Craft Expert, Team Cloud.
Veel bedrijven zetten hun on-premise datacenter op off. Daarvoor in de plaats kiezen ze een (tijdelijke) hybride omgeving. Of ze gaan rechtstreeks de cloud in. Waarom? Om hun ICT-diensten flexibeler aan te bieden, zonder daarvoor te investeren in de benodigde hardware. En ‒ natuurlijk ‒ om de performance, stabiliteit én bereikbaarheid van hun ICT-omgeving te vergroten.
Door cloud computing worden steeds meer oplossingen ‘As a Service’ afgenomen. Denk hierbij aan de infrastructuur, applicaties, databases et cetera. Het gevolg? We moeten op een andere manier kijken naar applicaties en desktops.
Neem onze vertrouwde Windows-desktop. Die zal uiteindelijk plaatsmaken voor mobile apps en webbased applicaties die gegevens vanuit de corporate omgeving aan de gebruikers presenteren. Direct, dus zonder tussenlaag. En hierdoor verandert weer de wijze waarop we kijken naar hoe organisaties hun ICT-infrastructuur hebben ingericht. Zeker als het gaat om design, softwareontwikkeling en security.


Alle blogs van deze auteur

Partners