Nov 12 2020 07:23 AM
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:
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?