Skip to content

[BUG] Microsoft.DesktopVirtualization/hostPools: Reordering of customRDPProperty field not saving #30283

Open

Description

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/desktopvirtualization.json

API Spec version

2024-04-03

Describe the bug

Reordering the customRDPProperty field after successfully creating a host pool doesn't take affect if the same properties are defined. I originally observed this behaviour when dealing with Terraform, this is opened in
hashicorp/terraform-provider-azurerm#27071

Expected behavior

Order of the items is changed

Actual behavior

Property is not updated

Reproduction Steps

Step1: Create a host pool with value of customRdpProperty starting with audiocapturemode:i:1;audiomode:i:0;.
PUT /subscriptions/...resourceGroups/testRG/providers/Microsoft.DesktopVirtualization/hostPools/testpool?api-version=2022-02-10-preview HTTP/1.1
Request Body:

{
   "location":"eastus",
   "properties":{
      "customRdpProperty":"audiocapturemode:i:1;audiomode:i:0;camerastoredirect:s:*;redirectclipboard:i:1;redirectcomports:i:0;usbdevicestoredirect:s:;devicestoredirect:s:;drivestoredirect:s:*;redirectprinters:i:0;redirectsmartcards:i:0;encode redirected video capture:i:1;redirected video capture encoding quality:i:1;enablecredsspsupport:i:1;videoplaybackmode:i:1;redirectwebauthn:i:0;use multimon:i:1;",
      "description":"",
      "friendlyName":"test pool",
      "hostPoolType":"Personal",
      "loadBalancerType":"Persistent",
      "maxSessionLimit":999999,
      "personalDesktopAssignmentType":"Automatic",
      "preferredAppGroupType":"Desktop",
      "publicNetworkAccess":"Enabled",
      "startVMOnConnect":false,
      "vmTemplate":"",
      "validationEnvironment":false
   },
   "tags":{
   }
}

Step2: Reorder the value of customRdpProperty property, update the host pool with value of customRdpProperty starting with audiomode:i:0;audiocapturemode:i:1;.
PATCH /subscriptions/.../resourceGroups/testRGproviders/Microsoft.DesktopVirtualization/hostPools/testpool?api-version=2022-02-10-preview HTTP/1.1
Request Body:

{
   "properties":{
      "customRdpProperty":"audiomode:i:0;audiocapturemode:i:1;camerastoredirect:s:*;redirectclipboard:i:1;redirectcomports:i:0;usbdevicestoredirect:s:;devicestoredirect:s:;drivestoredirect:s:*;redirectprinters:i:0;redirectsmartcards:i:0;encode redirected video capture:i:1;redirected video capture encoding quality:i:1;enablecredsspsupport:i:1;videoplaybackmode:i:1;redirectwebauthn:i:0;use multimon:i:1;"
   }
}

API response:
{
...
"properties":{
...
"customRdpProperty":"audiocapturemode:i:1;audiomode:i:0;camerastoredirect:s:;redirectclipboard:i:1;redirectcomports:i:0;usbdevicestoredirect:s:;devicestoredirect:s:;drivestoredirect:s:;redirectprinters:i:0;redirectsmartcards:i:0;encode redirected video capture:i:1;redirected video capture encoding quality:i:1;enablecredsspsupport:i:1;videoplaybackmode:i:1;redirectwebauthn:i:0;use multimon:i:1;",
...
}
}

Environment

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

MgmtThis issue is related to a management-plane library.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions