Internal server error when creating a HostPool

%3CLINGO-SUB%20id%3D%22lingo-sub-1424489%22%20slang%3D%22en-US%22%3EInternal%20server%20error%20when%20creating%20a%20HostPool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1424489%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20I'm%20using%20the%20Az.DesktopVirtualization%20module%20to%20create%20a%20Host%20Pool%20using%20this%20command%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3ENew-AzWvdHostPool%20-Name%20%22testHP%22%20-ResourceGroupName%20WVDDemoHosts%20-Location%20eastus%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThe%20Host%20Pool%20is%20created%2C%20however%20I%20receive%20the%20following%20error%20in%20Powershell%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3ENew-AzWvdHostPool_CreateExpanded%3A%20The%20server%20responded%20with%20a%20Server%20Error%2C%20Status%3A%20InternalServerError%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CBR%20%2F%3EIs%20this%20expected%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECheers%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGaston%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1425256%22%20slang%3D%22en-US%22%3ERe%3A%20Internal%20server%20error%20when%20creating%20a%20HostPool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1425256%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F560823%22%20target%3D%22_blank%22%3E%40Gastonlyons%3C%2FA%3E%26nbsp%3BLooks%20like%20you%20have%20not%20specified%26nbsp%3B-HostPoolType%20parameter%20(Personal%7CPooled).%20The%20error%20should%20be%20better%20but%20I%20would%20suggest%20you%20add%20this%20and%20let%20me%20know%20if%20you%20still%20get%20that%20error.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1425419%22%20slang%3D%22en-US%22%3ERe%3A%20Internal%20server%20error%20when%20creating%20a%20HostPool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1425419%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Pavithra%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20answer%2C%20I'd%20tried%20that%2C%20but%20when%20specifing%20all%20the%20parameters%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3ENew-AzWvdHostPool%20-Name%20TestingHostPool%20-ResourceGroupName%20WVDDemoHosts%20-Location%20eastus%20-WorkspaceName%20%22TestingWS%22%20-HostPoolType%20Pooled%20-LoadBalancerType%20DepthFirst%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EI%20get%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3ENew-AzWvdHostPool_FullSenerioCreate%3A%20Cannot%20bind%20argument%20to%20parameter%20'Name'%20because%20it%20is%20an%20empty%20string.%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EAnd%20the%20Host%20Pool%20is%20not%20created.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1426907%22%20slang%3D%22en-US%22%3ERe%3A%20Internal%20server%20error%20when%20creating%20a%20HostPool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1426907%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F560823%22%20target%3D%22_blank%22%3E%40Gastonlyons%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22has-inner-focus%22%20tabindex%3D%220%22%3E%3CCODE%20class%3D%22lang-powershell%22%20style%3D%22box-sizing%3A%20inherit%3B%20font-family%3A%20SFMono-Regular%2C%20Consolas%2C%20'Liberation%20Mono'%2C%20Menlo%2C%20Courier%2C%20monospace%3B%20font-size%3A%201em%3B%20outline-color%3A%20inherit%3B%20direction%3A%20ltr%3B%20position%3A%20relative%3B%20border%3A%200px%3B%20padding%3A%200px%3B%20display%3A%20block%3B%20line-height%3A%2019px%3B%22%20data-author-content%3D%22New-AzWvdHostPool%20-ResourceGroupName%20%26lt%3Bresourcegroupname%26gt%3B%20-Name%20%26lt%3Bhostpoolname%26gt%3B%20-WorkspaceName%20%26lt%3Bworkspacename%26gt%3B%20-HostPoolType%20%26lt%3BPooled%7CPersonal%26gt%3B%20-LoadBalancerType%20%26lt%3BBreadthFirst%7CDepthFirst%7CPersistent%26gt%3B%20-Location%20%26lt%3Bregion%26gt%3B%20-DesktopAppGroupName%20%26lt%3Bappgroupname%26gt%3B%20%0A%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22hljs-pscommand%22%3ENew-AzWvdHostPool%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-ResourceGroupName%3C%2FSPAN%3E%20%3CRESOURCEGROUPNAME%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-Name%3C%2FSPAN%3E%20%3CHOSTPOOLNAME%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-WorkspaceName%3C%2FSPAN%3E%20%3CWORKSPACENAME%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-HostPoolType%3C%2FSPAN%3E%20%3CPOOLED%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-LoadBalancerType%3C%2FSPAN%3E%20%3CBREADTHFIRST%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-Location%3C%2FSPAN%3E%20%3CREGION%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-DesktopAppGroupName%3C%2FSPAN%3E%20%3CAPPGROUPNAME%3E%20%0A%3C%2FAPPGROUPNAME%3E%3C%2FREGION%3E%3C%2FBREADTHFIRST%3E%3C%2FPOOLED%3E%3C%2FWORKSPACENAME%3E%3C%2FHOSTPOOLNAME%3E%3C%2FRESOURCEGROUPNAME%3E%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-powershell%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Microsoft

Hi, I'm using the Az.DesktopVirtualization module to create a Host Pool using this command:

New-AzWvdHostPool -Name "testHP" -ResourceGroupName WVDDemoHosts -Location eastus

The Host Pool is created, however I receive the following error in Powershell

New-AzWvdHostPool_CreateExpanded: The server responded with a Server Error, Status: InternalServerError


Is this expected? 

 

Cheers, 

Gaston  

3 Replies
Highlighted

@Gastonlyons Looks like you have not specified -HostPoolType parameter (Personal|Pooled). The error should be better but I would suggest you add this and let me know if you still get that error.

Highlighted

Hi Pavithra,

 

Thanks for your answer, I'd tried that, but when specifing all the parameters:

New-AzWvdHostPool -Name TestingHostPool -ResourceGroupName WVDDemoHosts -Location eastus -WorkspaceName "TestingWS" -HostPoolType Pooled -LoadBalancerType DepthFirst

I get:

New-AzWvdHostPool_FullSenerioCreate: Cannot bind argument to parameter 'Name' because it is an empty string.

And the Host Pool is not created.

Highlighted

@Gastonlyons 

New-AzWvdHostPool -ResourceGroupName <resourcegroupname> -Name <hostpoolname> -WorkspaceName <workspacename> -HostPoolType <Pooled|Personal> -LoadBalancerType <BreadthFirst|DepthFirst|Persistent> -Location <region> -DesktopAppGroupName <appgroupname> 

https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell