Azure / Azure/azure-rest-api-specs

Virtual Desktop Host Pool API should allow the name which is longer than 24 characters

Open
#11,642 8 comments 0 reactions 1 assignee Claimed by @datr93 View on GitHub
bug Desktop Virtualization Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

After tested with azure rest api, I found [Virtual Desktop Host Pool API](https://github.com/Azure/azure-rest-api-specs/blob/7c8fd7f0705552f77bf442c567c854af01ab4805/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/desktopvirtualization.json#L1076) doesn't allow the name which is longer than 24 characters. But Azure Portal allows to create this resource with name which is longer than 24 characters after tested on Azure Portal. So I assume it's the swagger property validation issue.

Error message:
```
desktopvirtualization.HostPoolsClient#CreateOrUpdate: Invalid input: autorest/validation: validation failed: parameter=hostPoolName constraint=MaxLength value="wvdpool-pooled-dev-s-eastus" details: value length must be less than or equal to 24
```

After checked azure-rest-api-spec, seems there is a [length validation](https://github.com/Azure/azure-rest-api-specs/blob/7c8fd7f0705552f77bf442c567c854af01ab4805/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/desktopvirtualization.json#L2957) on host pool name. Maybe it's the root cause.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.