Error while generating new token for WVD (windows virtual desktop) hostpool using powershell.

Error –

New-AzWvdRegistrationInfo – ActivityId: 2dd13ace-dfc4-4493-9f6c-057558a10c29 Error: Cannot patch Location. current: central us new: centralus

New-AzWvdRegistrationInfo Error: Cannot patch Location
New-AzWvdRegistrationInfo Error: Cannot patch Location


1> Able to generate token from

2> Able to get existing token with Get-AzWvdRegistrationInfo command

3> Command work with other hostpools but not with the one which shows blank space in location (ie. Central US instead of CentralUS)

New-AzWvdRegistrationInfo Error: Cannot patch Location

4> Location is missing from the hostpool properties:

Solution :

based on above observation, looks like there is something missing/wrong with WVD metadata and unfortunatly we can not modity the hostpool metadata or location attribute from portal or using powershell.

1> If the hostpool dont have any production workload then try to re-create hostpool.

2> Contact MS support and see if they can make any changes in the hostpool metadata.

(Visited 401 times, 3 visits today)

By Arun Sabale

Arun is a Solution Architect on enterprise client management with more than 14 years of experience in IT. Arun Sabale is Blogger and tech enthusiast. His main focus is on Azure cloud infra, Cloud automation with powershell, python, ARM terraform and all cloud infra services like compute, storage, network, automation, function api etc... LinkedIN -

2 thoughts on “New-AzWvdRegistrationInfo Error: Cannot patch Location”

Comments are closed.