Can’t create AVD hostpooltoken

So, quick blog about the situation where you can’t create an AVD hostpooltoken. A bicep API version causes this error.

This is the error you see in the Azure Virtual Desktop hostpool portal:

This is the error stated by the portal:

Error: Cannot retrieve token for Hostpool ‘hostpoolname’ because it is not of Hostpool management type ‘Standard’. (Code: 405)

I couldn’t find anything in the Microsoft Docs

I also tried to create a hostpool token via Azure CLI:

ERROR: (400) Error: RegistrationInfo cannot be modified for HostPools of HostPool management type ‘Automated’.

The Fix

I used a bicep template to create the hostpool. It uses this API version.

So, I tried to change it to a lower API version:

(I deleted the hostpool also)

After that, you can create the hostpool registration token again:

Also, when you deploy the hostpool manually it does work. So, it is an issue with the automation engine and/or the API version.

This is a quick fix for users who can’t create an AVD hostpooltoken.

Other Posts

Exclude FSLogix Users for Intune Managed AVD

Leave a Comment