Problem: Remove-AzWvdRegistrationInfo -> Error: Cannot patch Location

%3CLINGO-SUB%20id%3D%22lingo-sub-1881092%22%20slang%3D%22en-US%22%3EProblem%3A%20Remove-AzWvdRegistrationInfo%20-%26gt%3B%20Error%3A%20Cannot%20patch%20Location%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1881092%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhen%20i%20try%20with%20powershell%20commands%20remove%20the%20registration%20info%20of%20a%20hostpool%20i%20get%20the%20following%20error%3A%3C%2FP%3E%3CP%3EAz.DesktopVirtualization%5CNew-AzWvdHostPool%20%3A%20ActivityId%3A%202dd13ace-dfc4-4493-9f6c-057558a10c29%20Error%3A%20Cannot%20patch%20Location.%20current%3A%20east%20us%20new%3A%20eastus%3CBR%20%2F%3EAt%20C%3A%5CUsers%5Cadmswa%5CDocuments%5CWindowsPowerShell%5CModules%5CAz.DesktopVirtualization%5C2.0.0%5Ccustom%5CRemove-AzWvdRegistrationInfo.ps1%3A91%20char%3A9%3CBR%20%2F%3E%2B%20Az.DesktopVirtualization%5CNew-AzWvdHostPool%20%40PSBoundParameters%20...%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20InvalidOperation%3A%20(%7B%20SubscriptionI...view.HostPool%20%7D%3A%26lt%3B%26gt%3Bf__AnonymousType15%604)%20%5BNew-AzWvdHostPool_CreateExpanded%5D%2C%20Exception%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20400%2CMicrosoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets.NewAzWvdHostPool_CreateExpanded%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20do%20this%20via%20de%20Azure%20Portal%20there%20is%20no%20problem.%20There%20is%20also%20nog%20problems%20with%20other%20hostpool%20registration%20info.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20difference%20the%20between%20the%20hostpool%20which%20are%20working%20and%20which%20have%20the%20problem%20is%20the%20location%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22swalra_1-1605194598258.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F233182i0F8B964D3643ADE8%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22swalra_1-1605194598258.png%22%20alt%3D%22swalra_1-1605194598258.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20hostpool%20with%20location%20%22eastus%22%20is%20working%2C%20%22east%20us%22%20gives%20the%20error.%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20same%20error%20with%20New-AzWvdRegistrationInfo.%3C%2FP%3E%3CP%3EGet-AzWvdRegistrationInfo%20works%20without%20problems.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20i%20fix%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello,

 

when i try with powershell commands remove the registration info of a hostpool i get the following error:

Az.DesktopVirtualization\New-AzWvdHostPool : ActivityId: 2dd13ace-dfc4-4493-9f6c-057558a10c29 Error: Cannot patch Location. current: east us new: eastus
At C:\Users\admswa\Documents\WindowsPowerShell\Modules\Az.DesktopVirtualization\2.0.0\custom\Remove-AzWvdRegistrationInfo.ps1:91 char:9
+ Az.DesktopVirtualization\New-AzWvdHostPool @PSBoundParameters ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ({ SubscriptionI...view.HostPool }:<>f__AnonymousType15`4) [New-AzWvdHostPool_CreateExpanded], Exception
+ FullyQualifiedErrorId : 400,Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets.NewAzWvdHostPool_CreateExpanded

 

When I do this via de Azure Portal there is no problem. There is also nog problems with other hostpool registration info.

 

The difference the between the hostpool which are working and which have the problem is the location:

swalra_1-1605194598258.png

 

The hostpool with location "eastus" is working, "east us" gives the error. 

The same error with New-AzWvdRegistrationInfo.

Get-AzWvdRegistrationInfo works without problems.

 

How can i fix this?

 

0 Replies