In this blog post Iโd like to focus on various services and solutions regarding WVD as well as โplainโ RDS, on-premises, within Azure, and a combination of the two. In short, weโll look at: On-prem and Azure RDS -> Disaster Recovery & Migrating On-prem RDS to Azure RDS -> Migrate Azure RDS to WVD
Given itโs (WVD) architecture thereโs nothing stopping Microsoft from letting on-premises hosts connect as well. In fact, WVD is what used to be RDMI. RDMI, as it was originally positioned, did allow hosts/VMโs to be on-premises, itโs something Microsoft explained and advertised even in various presentations, videoโs and such. Just like the โreverse connect/proxyโ approach, which was introduced with RDMI as well.
Anyway, this got me thinking, thereโs a ton of stuff that Microsoft Azure offers to extend what you have on-premises, why not throw a little WVD in the mix as well and see where we end up. Itโs not WVD on-premises, like most are asking for, no, but I might be able to provide you with a few pointers worth having a look at. Iโve also included some non/less technical services/options for you to consider.
First things first
Being able to extend what you run on-premises into Azure requires a connection of some sort, like a Site to Site VPN using an Azure VPN gateway, for example. The use of an ExpressRoute is also optional, though far more expensive and often a bit of an overkill. This is one way to connect what you already have on-prem, to your WVD/Azure Cloud tenant. By the way, if youโre interested in reading more on some of the difference between ExpressRoute, Point to Site, and Site to Site VPN options, go here.
Once you have the connection/networking taken care of there are multiple Azure services / solutions that become of interest.
Who are you?
In other words, identity. As most of you probably know by now Azure AD is needed for WVD to work. Itโs used for user authentication purposes, while your WVD machines need to be domain-joined to a Windows Server Active Directory (by means of a standard or hybrid domain join). For this you can use Azure Active Directory Services, build an Active Directory based on IaaS, or use an existing on-premises Windows Server Active Directory.
Either way, your Azure AD will need to be kept in sync with your (on-premises) โotherโ Active Directory of choice. WVD VMโs cannot be directly Azure AD joined. If itโs the on-premises route you choose, you can use Azure AD Connect for synching purposes. This set up is not specific to WVD, by the way. Once you have this in place it also allows you to take full advantage of other Azure services and solutions. Letโs explore a few, shall we.
One step at a time
Letโs take a step by step approach and see how we can leverage various Azure services, apply them to RDS, WVD, and perhaps combine them with some of our on-premises resources as well.
Burst to Azure
First up is the option to burst workloads to Azure, when you run out of on-premises resources, for example. Or perhaps youโd like to setup some sort of DR model, active/active, or active/passive Given that connectivity and identity are both already taken care of we can jump right over to the good stuff.
Note that this is meant for traditional RDS type workloads, not WVD. Having said that, the Windows 10 Enterprise for Virtual Desktops Preview image (introduced with the WVD service) is available from the Azure market place and can be used outside of the WVD control panel (without the WVD agent installed, so it wonโt register), if used with Citrix. It has also been mentioned (by Microsoft) that, in time other CSPโs will be able to do the same. Maybe this will change going forward, being able to leverage the multi-session Win10 image, I mean, and just from a CSP perspective. Even though Win10 MU wonโt be available on-premises, this could be a nice step in between for some.
Auto scalingโฆ
Within Azure, Dynamic Scaling can be used to scale out the number of machines when needed, but also to shut machines down (scale down) when no longer used, to save on costs. When working with RDS though, there are some things to keep in mind.
Dynamic/Auto scaling isnโt optimized to work with RDS type workloads. For example, while itโs not a problem to increase or decrease the number of machine at any given time, either manually or automatically based on various metrics, new machines wonโt be added the RDS host session collection, or removed for that matter. This will have to be done manually. Also, when scaling down youโll have to consider โdrainingโ your session hosts from active user sessions before shutting them down.
Domain Name System
One more thing to consider is DNS. DNS can be configured on a vNet (will apply to all VMโs in that vNet) or network interface level (individual per VM). Another option would be to create a new VM in Azure, domain join it and turn it into an additional Domain Controller with DNS. When RDS sessions are established there is a ton of traffic and information going back and forth between your DCโs and RDS hosts, this way youโll have one near your RDS machines right up there in Azure.
Disaster Recovery Model
Azure Site Recovery can be used for disaster recovery as well as migration purposes. According to Microsoft โMigration uses the same steps as disaster recovery with one exception. In a migration, failing machines over from your on-premises site is the final step. Unlike disaster recovery, you can’t fail back to on-premises in a migration scenario.โ Which makes sense.
Next to DR and migration, ASR together with a solution like Azure Traffic Manager can also be leveraged to combine on-premises RDS with RDS on Azure (IaaS). Note that because WVD has brokering, load balancing, etc. all built in โas a serviceโ this type of set up only applies to plain RDS. ATM offers a range of options to choose from when it comes to directing users to one of the configured sites, as shown below. Iโve listed some documentation options for your you to check out below.
Iโm not going to go over all the steps needed to set up ASR, for DR or machine migration, I just wanted to point out that it can used for other things besides recovery. ASR can also be used for safe guarding your WVD environment. Migration works for on-premises physical machines as well as VMware and Hyper-V type VMโs, and from Azure to Azure (different Regions). In fact, @pmarquesc (on Twitter) recently wrote an excellent post on this particular topic, have a look here. Go here for Microsoftโs own documentation on Azure Site Recovery.
Youโll start by setting up your Azure target environment -> a replication policy -> initiate replication -> a test migration -> followed by the final migration. Make sure to keep an eye on some of the post-migration steps as well.
Migrate IaaS RDS to WVD
Now that we know how we can extend, and/or migrate our on-premises RDS deployment into Azure, as a next step, letโs have a look at how we can migrate IaaS Azure RDS machines into WVD. On a high level hereโs what youโll do: register to WVD -> create a tenant -> create a hostpool -> Install WVD agent onto your Azure RDS machine (s) -> the agent will register itself with the WVD control panel / service โ job done.
Never mind if itโs WVD or RDS you are interested in, both solutions offer various ARM templates and PowerShell CMDlets helping you in setting up and configuring your tenant, collections, host and app groups, and even to publish desktops and applications when desired.
Other Azure services that might be of interest
Just a few pointers that work for RDS on Azure, and will probably apply to WVD as well. If not today, they might in the (near) future.
- Auto Scaling Groups / Virtual Machine Scale Sets. I already highlighted these earlier.
- Start and Stop VMโs are available from the Azure market place. The Start/Stop VMs during off-hours solution starts and stops your Azure Virtual Machines on a schedule or by utilization โ Azure Automation is behind this.
- Auto-shutdown is available on a per VM basis, when desired. Youโll have a couple of options to choose from when it comes to when a machine needs to be shut down. While not many use this feature in production environments (thereโs no auto power on option available, for example), with WVD, especially now that itโs still in preview and most are busy exploring the service, itโs one you might want to consider.
- At his time you donโt have any choice when it comes to Regions, at least not regarding WVD (you do for RDS, of course). However, when the WVD goes live, keeping latency in mind, you might want to have a look at the different regions, price-wise I mean. Not all services and resources are priced equally.
- Now that we are on the subject of multiple regions, this applies to RDS as well as WVD in the future, consider using multiple for HA, DR, and fail over purposes.
Well, thatโs it for now. Thereโs more to share, but this post already turned out a bit lengthy so Iโll leave at this. Hopefully this post has been somewhat helpful to some.