Scheduled Agent Updates in Azure Virtual Desktop

Scheduled Agents Updates AVD

Until now, there has been no options available to schedule when Azure Virtual Desktop Agent updates take place.  Now in preview is an option to set a weekly schedule that defines when agent updates can take place.  This video goes over what components make up the AVD agent and how updates take place.  We then review how to set a schedule for both validation and non-validation host pool environments.

Continue reading “Scheduled Agent Updates in Azure Virtual Desktop”

Use PowerShell to Create a Snapshot Based Image of an Azure Virtual Machine

PowerShell Image Snapshot

This video goes of using the SnapImage.ps1 PowerShell script.  This script automates the process of creating an image from an Azure VM without destroying it during the capture process.  At a high-level, the following steps are taken:

Continue reading “Use PowerShell to Create a Snapshot Based Image of an Azure Virtual Machine”

Autoscale with Azure Virtual Desktop (AVD) Scaling Plans

AVD

Azure Virtual Desktop (AVD) now has an integrated session host scaling solution built into the portal.  This video goes over how to configure the custom role required for autoscale, then create a scaling plan and schedule and assign it to a host pool.

Continue reading “Autoscale with Azure Virtual Desktop (AVD) Scaling Plans”

Schedule On-Demand Azure File Share Snapshots with an Azure Function

Azure Function

Azure Recovery Vault policies can only schedule one back a day.  This may not be frequently enough for some organizations.  On-demand backups can be initiated with PowerShell.  In this video, we use an Azure Function to schedule on-demand backup recovery points throughout the day.

Continue reading “Schedule On-Demand Azure File Share Snapshots with an Azure Function”

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”

Image Builder and WVD Session Hosts with One Azure DevOps Pipeline

This video picks up where the last two DevOps videos left off.  We use one Azure DevOps Pipeline and multiple jobs to build an updated image with Azure Image Builder, then deploy new Virtual Machines, Windows Virtual Desktop Session Hosts in this example, with the updated image.  We also go over addressing Image Builder failures in the DevOps pipeline.

Continue reading “Image Builder and WVD Session Hosts with One Azure DevOps Pipeline”

Deploy Windows Virtual Desktop (WVD) Session Hosts with Azure DevOps

In this video, we go over using an Azure DevOps pipeline to automate building and Deploying Windows Virtual Desktop (WVD) Session Hosts.  This Azure DevOps tutorial builds on previous videos and demonstrates how to use Azure ARM Templates and parameter files to deploy WVD Session Hosts.  Next, the ARM template and parameter file is used in an Azure DevOps pipeline along with PowerShell and Azure Key Vault secretes to securely automate the deployment of Session Hosts based on the latest Shared Image Gallery (SIG) image.

Continue reading “Deploy Windows Virtual Desktop (WVD) Session Hosts with Azure DevOps”