Azure Virtual Desktop (AVD) has changed the game for remote working. Affordable and easier to set up and manage than traditional solutions, it makes virtual desktops accessible for all businesses.  So how do you go about optimising AVD?

Azure Virtual Desktop

In our first two blog posts in this series we discussed why you would use Azure Virtual Desktop and how to set it up. This third blog post gives the IT lead in your organisation high-level guidance on optimising the cost and performance of AVD (formerly Windows Virtual Desktop_ according to your particular business needs. The only IT knowledge you will need to manage this environment is traditional desktop management skills.

You may be looking for a virtual desktop or remote app solution or your organisation may have already set up Azure WVD, we outline how you can make the most of Microsoft’s best-in-class solution.

Want advice from a trusted Azure Virtual Desktop expert? We are an Azure Gold Partner and can help. Book a free, no-obligation consultation or read on to find out about the key considerations for optimising AVD in your business.

AVD - Book your free consultation

 

As many IT professionals will know, there is often a trade-off between cost and performance – if you want better IT performance, it usually costs more. While this is true for many elements of Azure Virtual Desktop, there are some key ways to optimise the performance of your Azure WVD environment that won’t cost a penny.

1. Optimising Azure Virtual Desktop performance

For optimizing AVD, there are two, key performance considerations – latency and speed.

Latency

Latency is the round-trip time (RTT) and primarily based on the physical distance from your users to the virtual desktop session host (or server) and back again. All things being equal, the latency decreases the closer the network points of a connection are to each other. Therefore, it is important to consider which Azure region your session host is deployed in.

For a decent virtual desktop experience, the round-trip latency should be less than 100ms.  Between 100ms and 200ms is still reasonable, however anything above 200ms will be noticeable by the end-user.

Choose the right location for your session hosts

The Microsoft AVD Experience estimator allows you to estimate the connection round-trip time (RTT) from your current location, through the Azure Virtual Desktop service, to each Azure region in which you can deploy virtual machines.

For example, if your users are in the UK, logically you’ll choose a UK data centre for your session hosts. If you also have a set of users on another continent, then you can deploy their session hosts in an Azure datacentre that’s local to them.

However, if you have a set of users on another continent that need access to back-end systems in the UK, you’ll need to balance the user latency to the virtual desktop and the virtual desktop latency to the back-end system. Therefore, you may want to consider locating your session hosts between the back-end system and your users. Our AVD specialists can help you identify the right option for your requirements.

Consider RDP Shortpath for direct connectivity

RDP Shortpath is a new Microsoft service in public preview designed to establish direct connectivity between the remote desktop client and the session host with a number of potential benefits:

  • reduces dependency on the Azure Virtual Desktop gateways
  • improves the connection’s reliability
  • increases the bandwidth available for each user session

The removal of additional relay reduces RTT, which can improve user experience with latency-sensitive applications and input methods.

Speed of your Azure Virtual Desktop

The second key consideration is the speed at which your virtual desktop is running your applications and performing tasks such as opening Outlook or creating a new Word document for example.

Size session hosts according to user needs

The speed your virtual desktop runs at is determined by how resource intensive the workload is (according to the applications that you’re running and how intensively you use them) and how much compute resource (processors and memory) you allocate to each user. The more compute resource you allocate to a user, the faster their virtual desktop will run.

To help estimate the amount of compute resource you need, Microsoft have published this useful guidance on the types of remote desktop workloads from ‘light’ through to ‘power’ with corresponding recommendations for virtual machine sizing.

For example, if your workloads are deemed to be ‘heavy’ then the recommendation is a maximum of two virtual desktop sessions (users) per vCPU, with a minimum virtual machine specification of four vCPUs and 16 GB of RAM such as the D4s_v3, which is a commonly used virtual-machine size for AVD session hosts. Therefore, you could have eight virtual desktop sessions on this session host. Our AVD consultants will advise you on how best to scale your deployment depending on the expected need of each type of user.

Test performance and refine

Once you’ve deployed your virtual machines, the first priority is to test their performance for your users. If the virtual desktop sessions are performing well, you can try increasing user density per processor – either by allocating more users per session host or by decreasing the size of the session host. Whilst this decreases your cost, you will need to monitor and ensure the trade off on performance.

Optimising Windows 10 for Azure Virtual Desktop

Windows 10 comes with a number of preinstalled applications. Removing those that aren’t wanted and not running unnecessary processes will make virtual desktop sessions more efficient. This will improve performance for the allocated compute resource, or alternatively, you can reduce the amount of compute resource and its costs accordingly. By optimising in this way, you can increase user density by up to 15%. Watch this 10-minute video from the Azure Academy for a useful overview of this optimisation plus Virtual Desktop Optimization tool with the scripts and instructions you’ll need.

NB You can’t use this code to optimise the image itself as some of the code won’t survive the sysprep process, instead run the code against the AVD session hosts once you’ve deployed them from the image.

If you’d like to find out more about the most suitable options for your business to ensure an efficient network connection, our Azure WVD consultants will be happy to help.

AVD - Book your free consultation

 

 2. Optimising Azure Virtual Desktop cost

Your Azure virtual machines or session hosts represent the primary cost of an AVD environment. Therefore, increasing user density as discussed above will reduce your costs. Once you’ve identified your optimum user density, there are steps you can take to reduce your costs further.

Switch off your virtual machines when they’re not in use

Azure virtual machines are billed on a pay-as-you-go basis, so there can be considerable cost savings if you’re able to switch your machines off outside working hours. You’ll continue to pay for any virtual machine discs, however this is typically a minor cost in comparison to the virtual machine.

If you only need your AVD environment to be available to users during office hours i.e. 08.30 to 17.30, Monday to Friday, and you’re able to switch off your virtual machines outside those hours, then you may pay as little as 27% of the full monthly virtual machine cost.

Autoscale to minimise your costs

Microsoft provides an autoscaling solution for AVD. This automatically turns session hosts on and off and manages user sessions for you. Whilst there are some limitations, autoscaling allows you to establish core hours so that you only pay for what you use:

  • You define core hours such as 09:00 to 17:00. Parameters apply seven days a week, weekends can’t be defined separately.
  • You determine how many session hosts (zero upwards) that should remain on outside of core hours.
  • It turns on session hosts as needed when users sign in during core hours. However it won’t shut these down again until the end of core hours. Further, it can only turn on session hosts in the host pool (pool of servers) and can’t add extra session hosts to the host pool.

Read this Microsoft article for a detailed explanation of how to scale session hosts using Azure Automation or for a refresher on the some of some of the typical technology and concepts involved, read our article How to implement Azure Virtual Desktop (AVD) | Compete366.

Gain discounts by committing to reserved instances

By default, all the resources you deploy in Azure are Pay As You Go (PAYG) and without minimum commitments or tie-ins. However, Azure also offers other pricing options such as Reserved Instances (RI) for virtual machines. This means that you can benefit from a significant discount in return for committing to resources for one or three years. You can still pay monthly and have the flexibility to cancel within the agreed period,  subject to a cancellation fee.

The key point to note is that if you buy an RI for a virtual machine, then you pay for it whether you turn the virtual machine on or not. So the idea is that you apply RIs to the virtual machines that are going to be on all the time, as you don’t make any saving by turning them off with RI pricing.

For further details of how to save more with RI read Microsoft’s article Azure Reserved Virtual Machine Instances | Microsoft Azure.

We normally recommend:

  • Use PAYG pricing for virtual machines that you can switch on and off because you don’t pay when they are turned off.
  • Use RI pricing for virtual machines that are on 24×7 when you can commit to usage for at least one year.

Mix and match your price options

There is also a crossover between the two pricing options that you may need to consider. If you get a 40% discount for a one-year RI on a particular virtual machine, then that machine would need to be switched on for more than 60% of the time for RI to be cheaper than PAYG. For example, if the PAYG price of the virtual machine is £100 per month and it’s on for 50% of the time, then the cost would be £50. If you applied the RI pricing option, then the cost would be £60.

You can mix and match PAYG and RI pricing, so for example if you always wanted to leave two session hosts on and turn the rest on and off, then you could use RI pricing for two and PAYG for the rest.

Choose the right AVD license

Wondering what license you need for AVD and what is the most cost-effective licensing option for you?

When deploying resources in Azure, typically the costs are included in the monthly bill for the solution you’re deploying and there are no additional licensing fees. For example, if you deploy an Azure virtual machine running a Windows Server, your monthly Azure consumption bill will include the cost of the compute part of the virtual machine (CPU and memory) and the operating system (Windows Server) – you essentially pay for what you use.

However, with Azure Virtual Desktop you may need additional licensing for services purchased outside Azure such as Office 365 or Microsoft 365.

Windows 10 licensing

AVD session hosts are automatically charged at the Linux compute rates so you won’t be charged for the Windows 10 license as part of the virtual machine cost. However, each AVD user will need to be licensed for Windows 10 with one of the following licenses which include it:

  • Microsoft 365: E3, E5, A3, A5, F3, Business Premium
  • Windows: E3, E5, A3, A5

Licenses are automatically applied when you deploy from an Azure marketplace image. The following article explains how to apply a Windows license to your session host virtual machines.

Office 365 licensing

If you’re going to deploy the Office suite on your virtual desktops, you’ll need to be licensed for Office with shared computer activation. This means you will need an O365 E3 or E5 plan or M365 Business Premium and above plans which include this.

FSLogix

If you’re going to use FSLogix for the user profile container, each AVD user will need to be licensed for FSLogix with one of the following licenses which include it:

  • Microsoft 365: E3, E5, A3, A5, F3, Business Premium
  • Windows: E3, E5, A3, A5

Microsoft’s guide to Azure Virtual Desktop Pricing gives full details on AVD licensing requirements.

You can certainly optimise your costs by choosing the right licensing. In practice we find that Microsoft 365 Business Premium is often the best option in the most common scenarios. It does of course depend on what licensing you already have and which of the above you need to be licensed for in your Azure WVD environment.

Your free consultation

If you need to weigh up how best to optimise Azure Virtual Desktop costs and performance for your business, then please contact us for a free discussion.

As Azure Gold partners, our certified consultants will work with you to identify and implement the right solution for your business, with guidance on all Azure and Microsoft Office 365 elements. It means that the only IT knowledge you’ll need to implement and manage this environment are traditional desktop management skills.

Let's Talk

    Enter your details below and we'll be in touch soon:




    Want to keep in touch?

    If you’ve enjoyed reading this blog, then sign up to receive our monthly newsletter where we share new blogs, technical updates, product news, case studies, company updates, Microsoft and Cloud news.

    We promise that we won’t share your email address with other business or parties, and will keep your details safe. You can choose to unsubscribe at any time.

     

     

    Published On: January 14th, 2021 / Categories: Azure / Tags: , /

    Contact our Microsoft specialists

    Phone or email us to find out more – or book a free, no-obligation call with our technical consultants using the contact form.

    “It’s great to work with the Compete366 team, the team members are really knowledgeable, helpful and responsive. No question is too difficult for them. They have really helped us to manage our Azure costs and ensure we have the right environment. When we bring a new customer on-board we can scale up immediately via the Azure portal and quickly make environments available to our customers.”

    “We also find that there’s never a heavy sales pitch from them – they are technically focused and recommend what’s right for us.”

    Paul Coyne, Rusada

    “We had great support from the Compete366 AVD expert, who was really helpful, and guided me through options to tackle issues that arose.”

    “The great thing about our AVD set up is that we have a custom set up for each project which Compete366 showed me how to do. And with the scalability and flexibility of AVD – we can meet clients’ expectations and get project users up and running more quickly.”

    Amir Dangol, Senior IT Manager, Integrity

    “We were immediately impressed with the advice that the Compete366 specialists in Azure Architecture were able to provide. This was all new to us and we really needed some external expertise that we could use to get our questions answered. The beauty of working with Compete366 is that we transferred our Azure consumption to them, and at the same time received all of their advice and guidance free of charge.”

    Tim Entwistle, Head of Software Development, Herrco

    “Working with Compete366 has been like extending our own team – they are extremely and easy to work with. Right from the outset, it was clear what was on offer – everything was presented to us in a straightforward and uncomplicated way. They also provided just the right level of challenge to our developers and saved us time and money by suggesting better ways to implement our infrastructure.”

    Oliver Mackereth, Project Director, Hanse

    “Compete366 were able to help us leverage some useful contacts in Microsoft. We really value the expert advice and guidance that they have offered us in setting up a highly scalable infrastructure. We are also setting in place a regular monthly meeting which will allow us to further refine our architecture and ensure we keep on track as our requirements grow and change.”

    Matt Brocklehurst, Technical Director - AWOL Adventure

    “I have been delighted with the migration, where my team worked very hard, supported by expert advice from Compete366, and achieved everything in the timescale we had set out. Compete 366 made sure that we didn’t make any expensive mistakes, and guided us through the process”

    Darrell Cann, Managing Director, APEX
    Jon Milward
    Director
    Thank you for your message. It has been sent.
    There was an error trying to send your message. Please try again later.

    By submitting your details, you agree to be contacted.