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…
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 Universal Print Driver and Map Printer
This script will first check if 7zip is installed and if not then install it. Then the script downloads HP Universal PS Driver, installs the driver and then maps a…
Resize Partition After Adding Disk Space
This script can be used to resize the OS partition after you have added additional disk space in Azure on VMware. Current script is triggered by a webhook and uses…
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…
GitHub Actions Workflow to Delete Multi-Session Host Pool VMs Running an Old Image
This workflow can be used to delete old image version session hosts. The script will do the following: • Checks if the VM is deallocated or running. If deallocated, the…
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.
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.