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…
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…
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…
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…
Find AVD User and Log Off
This script can be used to log off a user from Azure Virtual Desktops or you can integrate this with a request form and use it for user self-service.
Move Sessions Hosts to New Host Pools Based on VM Location.
This script automates the process of moving Azure Virtual Desktop (AVD) Sessions hosts to new host pools based on the VM location and then reassigns the user back to their…