Description
API Spec link
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