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”

Azure DevOps Pipeline and Image Builder

In this video, we go over using an Azure DevOps pipeline to automate the image build process with Azure Image Builder.  This Azure DevOps tutorial goes over using Azure DevOps with VS Code to manage files.  We then build a YAML pipeline with Azure CLI, ARM template deployments and PowerShell to build an image.

Continue reading “Azure DevOps Pipeline and Image Builder”

Azure DevOps, Git and VS Code

This video provides an introduction to using Azure DevOps Git repos with VS Code.  We go over installing and configuring Git, then cloning a repo to the local workstation.  We also go over using Git Push to push changes to the DevOps repo and using Git Pull to update the local repo with remote changes.

Continue reading “Azure DevOps, Git and VS Code”

Azure DevOps: Deploy a Windows Server with a DevOps Pipeline and Key Vault

Azure Pipeline Logo

In this video, we go through the process of using Azure DevOps pipelines to deploy a simple Windows server with an Azure ARM template.  We add ARM templates to a repo and connect Azure DevOps to a subscription with a service principle.  We also go over connecting Azure DevOps to an Azure Key Vault and use a KeyVault secret as a password for the server’s local admin account.

Continue reading “Azure DevOps: Deploy a Windows Server with a DevOps Pipeline and Key Vault”

Update with Breadth-First! Auto Scale Session Hosts in Windows Virtual Desktop Spring Update (ARM) with Azure Function

I am excited to announce a significant update to the Auto Start and Stop script for WVD.  This update adds a new option that works with the peak time settings to change the load balancing type from Depth-First to Breadth-First.  When used, it also starts all available session hosts during peak time to accommodate the user load. 

Continue reading “Update with Breadth-First! Auto Scale Session Hosts in Windows Virtual Desktop Spring Update (ARM) with Azure Function”