M365Con 2027 – free online conference · 11–22 Jan 2027 · 120 sessions m365con.net

2026-11-22

Nerdio Auto-scale – Simply Explained

Follow the showNew episodes on Microsoft 365, Copilot and more, free in your podcast app.Apple PodcastsSpotify
Cover: Nerdio Auto-scale – Simply Explained
Nerdio auto-scale decides which Azure Virtual Desktop session hosts to start and which to shut down, based on signals like CPU usage, active sessions or user demand. This episode explains the logic, the schedules and the trade-offs in plain language. In this episode of Simply Explained you will…

Show notes

Nerdio auto-scale decides which Azure Virtual Desktop session hosts to start and which to shut down, based on signals like CPU usage, active sessions or user demand. This episode explains the logic, the schedules and the trade-offs in plain language. In this episode of Simply Explained you will learn:

  • Why paying for idle session hosts is the problem auto-scale was built to solve
  • How the pool size and the building blocks of an auto-scale configuration work
  • Which triggers make the pool grow or shrink, such as CPU, sessions and user demand
  • How schedules and pre-staging get hosts ready before the workday starts
  • How scale-in works without pulling anyone out of an active session
  • Which common mistakes to avoid when you set it up

Simply Explained by M365.FM breaks down Microsoft 365, Azure and modern IT topics in clear, jargon-free language. Hosted by Mirko Peters. Become a supporter of this podcast: https://www.spreaker.com/podcast/m365-fm-microsoft-365-azure-cloud-power-platform-ai--6704921/support. This episode includes AI-generated content.

Host: Mirko Peters

Guests

Guests in this episode:

Transcript

Transcript (TXT)

Read the full transcript

Speaker 1: Here's how Autoscale decides which desktops to turn on and which to shut down. Nerdio Manager watches a few signals, like CPU usage, average sessions, or straight-up user demand, and acts on the ones you choose. It can also pre-stage hosts before the workday so the first logins are quick. The hard part isn't starting machines, it's stopping them without pulling someone out of a session, so there's a whole set of scale and rules for that. Let's walk through the logic, the schedules, and the trade-offs in plain language. Let's start with the problem, because the settings only make sense once you feel it. Azure Virtual Desktop runs on Azure's pay-as-you-go model, which means you build for compute while a virtual machine is running. If a session host is powered on but nobody's using it, that's money going out the door for nothing. The alternative to autoscale is doing it by hand, and that puts you in a bind. You either leave enough machines running all day and all night to cover your busiest moment, which is expensive, Or you run lean and give people slow logins and a sluggish desktop, neither one feels good, and both of them are avoidable. That's the gap Autoscale fills. It starts session hosts when demand shows up, and it stops or removes them when demand goes away, so the capacity you're paying for is closer to just-in-time than always-on. Nerdio's own description is refreshingly simple. The host pool grows when it needs to serve current demand, and it shrinks when that demand is gone. One thing worth naming early. Autoscale is about the machines in the pool, not the people using them. It doesn't change what your users see, and it doesn't touch their profiles or their apps. It decides how many desktops are awake and ready to accept a login. So the whole game comes down to one tension, and you'll hear it again and again in this video. You want to spend as little as possible, and you want your users to never notice. Everything else is in service of those two things. Now let's talk about what's doing the deciding, because there are two layers here, and they're easy to mix up. Nerdio Manager runs its own autoscaling engine inside its platform. That engine looks at your configuration, makes a decision, and then calls Azure's management APIs to start a host, stop a host, create a new one, or delete one. So Nerdio is the brain and Azure is the hands. Underneath all of that sits the Microsoft layer. Microsoft's autoscale uses something called a scaling plan, and the plan is really a set of schedules plus some thresholds. The schedule moves through four phases across the day. There's ramp up when the day is starting and usage climbs, then peak when the most people are working, then ramp down when usage tapers off, and finally off peak when almost nobody is around. Two numbers inside that plan do most of the work and they sound more technical than they are. The capacity threshold is the fullness line for your pool. If the pool gets fuller than that line, autoscale adds a machine. The minimum percentage of hosts is the floor and it's the number of machines you never drop below, no matter how quiet things get. Microsoft rounds that up to a whole machine, so 30% of six hosts becomes two hosts, not one and a half. Microsoft also gives you two ways to scale. Power management just turns machines on and off. Dynamic scaling can also create new machines and delete them, which is handy when you want the pool to genuinely change size over time. Nerdio's engine can take the same kinds of actions, and it does that from its own console. So the mental model is this. You describe the shape of your day and the limits you care about, and the engine handles the arithmetic while you sleep. Before the engine can scale anything, it needs to know what it's allowed to scale. And that starts with the size and shape of your pool. There are four settings here, and they're the ones I'd get right first. The first one is a definition. Nerdio asks you what counts as an active host. You can say a machine counts as active whenever the virtual machine is simply running in Azure. or you can say it only counts when the AVD agent is available and the AVD backend is actually seeing a healthy heartbeat from that machine. In most cases, you want the second one, a machine that's powered on, but whose agent is unhealthy, can't really take a login, so counting it as active just hides a problem. Next comes the base host pool capacity. That's the count of machines that always belong to the pool. They can be stopped or running, so this is more about how many you own than how many are awake at any given moment. Next up is the minimum active host capacity, which is the floor of machines that are always running and ready. This one matters more than people expect. If that floor is zero and nobody has a way to start a machine on demand, your users hit a dead end. We'll come back to that when we get to the mistakes. The last sizing setting is burst capacity. That's how far above your base you're willing to go when demand spikes. The engine can create those extra machines on the fly and here's the useful part. Burst machines are the first ones removed when things quiet down. Load balancing decides how people get spread across the machines that are running. Depth first fills one host completely before it moves to the next. That tends to save money because the empty hosts can be shut down sooner. Breath first shreds people evenly across every running host, which is gentler on performance for heavier workloads. Nerdio lets you choose, and that choice is one of the clearest cost versus comfort dials in the whole feature. Microsoft's native autoscale leans breadth first by default, and when a scaling plan is in charge, it overrides the pool's own load balancing setting anyway. A couple of things to note here. Sizing sets your boundaries and the engine can't go outside them. If you set a tight floor and no burst room, no clever trigger is going to save you when the morning rush hits. Now for the part that actually makes the pool move. The trigger is the signal that tells the engine it's time to scale out or scale in, and Nerdio gives you four kinds to choose from. Start with CPU or RAM usage. With this one, the engine watches the average CPU or memory across all the running hosts, and when that average crosses a value you set and stays there for a set duration, it scales out. The duration matters because it stops a 10-second spike from waking up five machines, Then there's average active sessions. Instead of watching how hard the processors are working, this one watches how many sessions each host is carrying, and it scales out when that average gets too high. Available sessions works a little differently. Here you ask the engine to keep a certain number of open seats ready either all the time or just during work hours. When the number of available seats drops below a value you set, it can add a burst host to catch up. If you've ever watched a pool fill up right before lunch, this is the trigger that smooths that out. And then there's user-driven. Machines start when users connect and they stop after a set amount of time once everyone has signed out. It's the closest thing to demand deciding everything by itself. Here's a detail that surprises people. You're not stuck with one trigger. Nerdio lets you combine CPU and RAM rules and it treats them with an OR on the way up. So you could scale out at 65% CPU held for 15 minutes or at 90% CPU held for 5 minutes, whichever happens first. The logic on the way down is the mirror image. The engine adds capacity when any of your scale-out conditions is met, and it removes capacity only when all of your scale-in conditions are met. That asymmetry is deliberate. Adding a machine is easy and taking one away from someone who's using it is not, so the engine is cautious about the second one. which leaves one problem unsolved. Every one of these triggers reacts to demand after it shows up, so the very first people through the door can still get the slow login while a machine boots. The next part is about fixing that. That's exactly what schedules and prestaging are for. Instead of waiting for demand to appear and then reacting, you get ahead of it. Start with the two scheduled slots Nerdio gives you. There's a default schedule for normal operations and there's an alternative schedule for everything outside normal operations. The alternative schedule is where you put your weekends, your holidays or a stretch you know is going to be unusually busy. Nerdio's docs use the example of extra support agents brought in before a holiday period. You can target specific days of the week or you can target specific date ranges so a quiet Saturday and a busy December each get their own rules. Pre-staging is the answer to that morning stampede. It lets you say start this many hosts so they're already running by the time work begins. The engine doesn't wait for the first login to wake a machine. It's up and ready before anyone sits down, so the first wave of people gets a fast desktop instead of a spinning wheel. Nerdio adds a small but thoughtful control right next to it. It's called scale-in delay and it restricts scale-in for a while after work hours start, That means your pre-staged hosts don't get shut down the moment they're briefly unused. You pay to have them ready, so you get to keep them ready for the window you chose. You can also run more than one pre-staged schedule as long as the windows don't overlap. The docs give an education example where different grades have different class schedules and the pool turns hosts on to match. If your organization doesn't have one single start time, this is how you handle that without a spreadsheet and a prayer. A couple of things to note. There's no single right number for how many hosts to pre-stage or how early to start them, but a common starting point is to have hosts ready 15 to 30 minutes before the day begins and then tune from there based on how logins actually look. Pre-staging is proactive and the triggers we just covered are reactive. The good setups use both, so the baseline is waiting for your people while the triggers catch the surprises. This is the section that matters most to your users, so let's slow down a little. Scaling out is easy to love. Scaling in is where you can either look like a hero or end up in someone's calendar invite. The rule that governs all of it is simple. You don't forcibly log off a person who's in the middle of an active session. so when the engine decides a host should go away, it doesn't just kill it. It puts that host into drain mode first. Drain mode means the host stops accepting new connections, but the people already on it stay right where they are. Then the engine waits for them to finish and sign out on their own. Only after the last session is gone does the machine get shut down and deallocated. That's the graceful path, and it's built in. On top of that sits a set of scaling restrictions that work like office hours. You tell the engine not to start shutting things down until after the workday, and you can optionally have it drop hosts into drain mode at the start of that window while still keeping your minimum active hosts alive. then there's a setting called scale and aggressiveness. And this is the one I'd read twice. It has three levels. High aggressiveness is the default, and it goes after hosts that have active or disconnected sessions. It consolidates the people who are still working onto a single host, sends them a warning message first, and then removes the rest. Medium aggressiveness is gentler. It only removes hosts that have disconnected sessions and it leaves hosts with active sessions alone. A lot of people who work with this every day recommend medium as the safer default. Low aggressiveness only removes hosts with no sessions at all, which is the kindest to users, but it comes with a warning. There's no guarantee the pool ever scales in at all if sessions keep lingering. If you want finer control, there's rolling drain mode. you can create several drain windows and target a percentage of hosts in each one. So you might drain a quarter of your hosts at midnight and the rest at three in the morning instead of doing everything in one shot. The engine picks the least used hosts first and it defers hosts that are already in drain mode, so it spreads the disruption around. One more thing that trips people up. Disconnected sessions still count as active capacity. If a user closes their laptop lid and walks away, their session can sit there disconnected, and the engine assumes they might come right back. A pool full of disconnected sessions may never scale down to zero, even when it looks empty. Microsoft's fix is a group policy that signs out disconnected sessions after a timeout, and it's worth pairing that with your scale-in rules. A couple of things to note. Every host chosen for scale-in sends a warning message to the people on it before it happens, so nobody gets surprised mid-task, and forced sign out when you enable it at all only happens during the ramp down part of the day. That covers the core engine. Now here are the pieces that make it livable once the honeymoon is over. First there's a storage trick that autoscale by itself doesn't handle. When a host is stopped you're still paying for its disk. Nerdio can switch that disk from a fast pricier type down to a cheaper one while the machine is off and then switch it back to the fast type before the machine starts again. Your users never notice because it happens while they're asleep and it trims a cost that would otherwise just sit there. Second, there's auto-heal. Session hosts can go bad. Maybe the machine loses its trust relationship with the domain. Maybe something's wrong with the profile layer. Maybe the AVD agent just reports a status other than available. Instead of you finding out from a ticket, Nerdio can try to fix it. It can restart the machine a set number of times, run repair actions, and If that still doesn't work, remove the host and rebuild it. When it has to rebuild, it can power on a spare to hold your capacity so the pool doesn't lose a seat in the meantime. Third, there are the controls for when you don't want the engine touching something. You can exclude a specific host from scale-in only or from both scale-in and scale-out, either forever or until a date and time you pick. That's how you protect a machine during maintenance or a long job. And you can pause autoscaling for a whole pool until a chosen moment which is handy for holidays or a maintenance window. Fourth, there's a feature that matters once you have more than a couple of pools. Autoscale profiles, which are a premium feature, let you build one profile and apply it to many host pools instead of editing each one by hand. If you've ever chased a typo across 10 schedules, you already know why that matters. And finally, there's reporting. You can pull an autoscale history report and look at a build versus potential cost view. So when someone asks whether this is actually saving anything, you have an answer that isn't a guess. Let's name the traps, because most of them are easy to fall into and easy to fix once you see them. The most common one is scaling all the way to zero without a way back in. If your minimum active host is zero and nobody has turned on start on connect, then when a user tries to log in, there's nothing to connect to and they get an error instead of a desktop. Start on connect wakes a machine when someone reaches for it, so it's the safety net that makes a zero flaw usable. Right behind that is skipping the minimum active hosts and the pre-staging altogether. If you scale everything down overnight and nothing is pre-staged, your earliest arrivals pay the price while machines boot. That's the slow login everyone complains about. Then there's being too aggressive on the way down. High scale in aggressiveness can consolidate people onto a single host and sign them out, Medium is the safer default for most environments, and it's usually worth the small extra cost. Disconnected sessions are another quiet trap. They count as active, so a pool with a lot of them never reaches zero, and the savings you expected never show up. Pair your scale-in rules with a session timeout policy, and this one mostly disappears. Another one is running two scaling tools on the same pool. Microsoft is clear that you should not run autoscale alongside another autoscale or a scheduling script. Pick one tool and let it own the pool because two brains fighting over the same machines is a recipe for strange behavior. Time zones and special dates trip people up too. A team spread across regions needs schedules that match local working hours and holidays need their own plan. Nerdio's alternative schedule handles those dates, which is worth knowing because Microsoft's native autoscale can't target specific holiday dates at all. And here's one that surprises people. Autoscale overrides drain mode. If you put a host into drain mode by hand, The engine can still turn that host on or off because it manages train mode itself. If you truly want a machine left alone, use the exclusion setting instead. So here's where this lands. Autoscale isn't a switch you flip once and forget. It's a small set of decisions about when to spend money and when to protect your users. Get the floor, the pre-staging, and the scale and aggressiveness right, and the rest follows. Here's my question for you. What's your biggest worry with autoscale, the bill, or someone getting signed out mid-task? If this made the topic feel less intimidating, subscribe to M365FM to master the tools and the mindset shaping the future of work.