Skip to content

DesktopVirtualization hostPool Name max length wrong value #19298

@agm83

Description

@agm83

If a host pool name exceeds 24 characters I will not be able to use it in any command that specifies this name. This was working in the previous version of the CLI, at minimum the one available a month ago.

To Reproduce

  1. create a host pool with a name longer than 24 characters using the Portal or Azure Powershell (obviously not cli at this point)
  2. try to perform any operation in that hostPool from az cli, such as:
    az DesktopVirtualization hostPool show -g $resourceGroupName -n $over24CharactersHostPoolName
  3. you will receive the ERROR: Parameter 'host_pool_name' must have length less than 24

image
image

Expected behavior
when using Portal, ARM, azure PowerShell you can create a host Pool with a name as long as 64 characters long, I would expect consistency. I have host Pools that are 27 characters long. Here you can see the maximum length for the name in the portal:
image

Environment summary
PS C:> az -v
azure-cli 2.27.1
core 2.27.1
telemetry 1.0.6

Extensions:
desktopvirtualization 0.1.1

Metadata

Metadata

Labels

APEXAPEX onboardingDesktop Virtualizationcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions