In today’s fast-paced business environment, ensuring efficiency and responsiveness is crucial for maintaining productivity and user satisfaction. Proactively managing virtual machines (VMs) is essential to prevent potential issues before they…
Find Azure Virtual Desktop User Session
Here’s a quick script that can be used to find a user session which you can integrate with other scripts to perform actions. Find a User’s Azure Virtual Desktop Assigned…
Azure Virtual Desktop Scaling Plan Check and Enable
Verify your scaling plans are enabled and haven’t been accidentally left disabled. If a scaling plan has been disabled for longer than 24 hours by checking lastmodified, then have the…
Autoscaling Storage Account File Share Size
This autoscaling script can optimize size, performance, and costs for your Azure Storage Account File Shares that store Azure Virtual Desktop FSLogix profiles. Typically, you would run this with Function…
Get AVD Client Version, Latest Version and Delta Between Versions
This query is from AVD Insights workbook that you can create your own workbook or use it with PowerBi, LogicApp or PowerAutomate to get client versions used for Azure Virtual…
Get Session Host OS Versions Using Log Analytics Query
Get session host OS versions from Log Analytics. Here’s a query you can use to get the OS version of your session host OS. Query to include Windows 10, UserName…
AVD Hibernate Device Guard configuration has disabled hibernation.
Device Guard and Credential Guard require virtualization-based security (VBS) and are only supported with hibernation when Trusted Launch is enabled on the virtual machine and Nested Virtualization is enabled in…
AVD Remote App Additional KQL Queries
This query will give you additional information about AVD Remote App usage. Output contains UserName, TimeGenerated, RemoteApplication, ApplicationName, SessionHostName, GatewayRegion, and ResourceID If you want the complete application path you…
KQL Query for AVD Remote App Usage
Here’s a KQL Query you can use to get 30 Day usage metrics for a Azure Virtual Desktop Remote App. Includes Start Time, End Time, Duration, UserName, ResourceAlias/RemoteAppName, SessionHostName.
Azure Compute Gallery Image Replication and Target Region Check
This script will get your Azure Compute Gallery or Galleries then check all images, latest version, target regions, regional replication counts, storage account types and provisioning status/replication status. It will…
Upgrade AVD Win10 Multi-Session Image to Windows 11Multi-Session
Verify your VM is GEN2 and deallocated, then run the PowerShell commands to enable trusted launch for your VM. Enable Trusted launch on existing VMs – Azure Virtual Machines |…
Enable TrustedLaunch, SecureBoot, and vTPM on Existing VMs
Script to enable Trusted Launch on existing Azure Gen2 virtual machines. The script will check if the VM is deallocated and enable Trusted launch, secure boot, and vtpm. After the…
Remove Azure VM Extension Before Capture For AVD Images
If you have Azure policies in place that automatically install Microsoft Monitoring Agent/AMA/Log Analytics Agent or Onboard Defender For Cloud you should removes these before capturing your virtual machine so…
Enable Azure Accelerated Networking
Here’s a script to enable Azure Accelerated Networking for existing Azure Virtual Desktops VMs. Script will check all VMs in the subscription to see if they are deallocated and if…
Auto-scale for Azure Files Storage Premium
Automatically increase your Azure Files Storage share quota using Function App. This script and similar instructions are provided by Microsoft but I have included some addition information to make it…
Check Your Defender For Storage Plans When Using Azure Storage and FSLogix Profiles
If you are using Microsoft Defender for Cloud and also have profiles stored on Azure Files you should verify you have the best plan selected. The Microsoft link below contains…
Tag AVD Personal Desktops With Assigned User
Here’s how you can use a scheduled GitHub Actions workflow to automatically tag virtual machines when users get assigned. This script will check all resource groups for HostPoolType equal to…