AVD DrainMode dependent on Compliance

An AVD deployment is often joined to Intune. This results in a compliance state in Intune used in Conditional Access for access to Microsoft 365 applications. We don’t want users logging onto AVD machines that aren’t compliant hence the DrainMode dependent on Compliance. Also, AVD deployments are often Hybrid Entra Joined. That comes with the … Read more

FSLogix error code 0x0000052E

This is a quick short blog about these error codes: FSLogix error code 0x0000052E The user profile failed to attach. Please contact supportStatus: 0x0000001B, Message: cannot find the virtual disk at the provided locationReason: 0x00000005, Message: Reason initialized to empty stateError code: 0x0000052E, Message: The user name or password is incorrect. You will see this … Read more

Automating cleanup Entra Joined AVD hosts

This post is about automating the cleanup for Entra Joined Azure Virtual Desktop (AVD) hosts. So, what is the problem? The problem is that when you frequently deploy Entra Joined AVD hosts, they are only Entra Joined, and they already exist Entra/Intune. You get this error when running the bicep template: That error is because … Read more

Monitoring AVD with Azure Monitor

This post is about performance monitoring Azure Virtual Desktop (AVD) with Azure monitor. This features the CPU, RAM, Disk utilization, and more. The log analytics agent will be deprecated in 2024: You can check out the Microsoft docs here. This post features the manual configuration via the Azure portal and an automated configuration via Bicep … Read more

Enable or Disable autoscaling on AVD hostpool with Powershell

I got a question from a customer if I could write a script that can enable or disable autoscaling for an AVD hostpool with PowerShell. So, I wrote the script and want to share it. They needed to disable autoscaling before the deployment of new session hosts and the removal of old ones. Prerequisites You … Read more

Set PageFile via CustomScriptExtension and Bicep

I got inspired by a session from Ryan Mangan, who told me about the importance of the page file for an Azure Virtual Desktop VM. So, after that, I started VS Code and created automation to set the PageFile via a CustomScriptExtension and Bicep. So, this blog is about setting the PageFile via CustomScripExtension for … Read more

Use BICEP to add a new version to AzureComputeGallery

This blogpost is about how to use BICEP to add a new version of your managed image to an AzureComputeGallery. Furthermore, you can do so by using this button in the portal: But we like to automate these actions to save time and remove complexity. Prerequisites We need a managed image as a source. You … Read more

AzureDiskEncryption via Bicep

This blog post is about using the AzureDiskEncryption VM Extension for Azure via Bicep. I struggled with this for a while. Furthermore, I couldn’t find much information about this topic. So, I decided to write a blog post about it. The VM Extension is the same as, for example, the domain join VM Extension. I … Read more