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…
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…
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…
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 if Azure Storage Account Keys are Older Than 180 Days
This GitHub Action Workflow can be used to check if Azure Storage Account Keys have been rotated within the last 180 days and scheduled to run automatically. You can add…
Compare and Delete AD Computer Accounts
This script deletes old computer accounts if the Azure virtual machine was deleted. Current script is triggered by Azure Automation webhook and uses Azure Automation credential with a Hybrid Worker.
Install NVIDIA Drivers and Set Registry Keys
This script can be used with Azure Automation Runbook and a webhook to trigger the install and configuration. You can also remove modify the script to fit your needs. If…
Check for Failed Azure Extensions and Remove
This script will check your VMs for a specific failed extensions/CSE and remove them if the virtual machine is running.
Check Azure Compute Quota with Scheduled GitHub Action
Here’s how you can check your Azure compute quota with a scheduled GitHub Action workflow. This runs on a schedule but can also be run manually on a specific subscription.
Find and Delete all Orphaned Azure NICs and
Here’s a script that will find all the Azure Network interfaces that are orphaned/Unattached and remove them. Excludes any Private Endpoints and uses Resource Graph to quickly find the NICs.