Shut Down Unused Session Hosts in a Windows Virtual Desktop Pooled or Personal Host Pool

WVD Function App

(UPDATED 6/17/2021 with code for multiple pooled and personal host pools) Azure Virtual Desktop (previously Windows Virtual Desktop (WVD)) has a new option in preview that starts session hosts in a personal or pooled host pool when a user connects. It won’t, however, shut down the session hosts when the user logs out. The script outlined in this video will evaluate all running and available session hosts in a personal or pooled host pool and shut down and deallocate session hosts without an active connection.  Deallocating Session hosts while not in use can save money on compute costs.

Continue reading “Shut Down Unused Session Hosts in a Windows Virtual Desktop Pooled or Personal Host Pool”

Automatically add an Azure Tag Using Event Grid and Azure Functions

Azure Function

In this video, we apply Azure Tags to Resource Groups automatic with Event Grid and Azure Functions.  We configure Azure Event Grid on a subscription to send an event whenever a new resource group is created.  Then, we configure a PowerShell Function App with a Managed Identity to use the event data and tag the resource group with the date and creator’s name.

Continue reading “Automatically add an Azure Tag Using Event Grid and Azure Functions”

Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function

This video is a step-by-step introduction for using an Elgato Stream Deck to send a Webhook that starts or stops computers in Azure based on their tag settings.  We go over creating the Azure Function App, setting up system assigned identities and creating a custom RBAC role in Azure to grant the identity permissions to the subscription.  Then we configure the start stop function to use values passed in from the web hook to start or stop the computers.  Finally, we configure the Elgato Stream Deck with start and stop buttons that control the lab.

Continue reading “Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function”

Auto Start and Stop Session Hosts in Windows Virtual Desktop Spring Update (ARM) Edition with an Azure Function

I am happy to release an update to my Windows Virtual Desktop (WVD) Start-Stop script for Windows Virtual Desktop updated for Spring 2020, or “WVD ARM.”  This script uses an Azure Function to starts and stops WVD Session hosts in a host pool based on the user load. 

Continue reading “Auto Start and Stop Session Hosts in Windows Virtual Desktop Spring Update (ARM) Edition with an Azure Function”

Automatically Start and Stop WVD VM’s with Azure Automation

One value proposition of any cloud service is consumption-based pricing, only paying for services when used.  Consumption-based pricing is an advantage of Windows Virtual Desktop (WVD), Microsoft Azure-hosted remote desktop service.  Or at least it would be if there was an easy way to start and stop session hosts based on demand.

Continue reading “Automatically Start and Stop WVD VM’s with Azure Automation”