Open S-dn-Y opened 1 month ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aperezcloud, @kenieva.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aperezcloud, @kenieva.
Description
Hi everybody,
We rely on a PolicyParameterObject for assigning a policy and in the latest version(s) the object is converted in a way that it breaks our code. Following the docs I create a hashtable where the key is the parameter's name, the value is an array of strings that represent allowed images or excluded VM ids. The errors are listed below in the debug output.
I've found that the convert helper function that was added in https://github.com/Azure/azure-powershell/pull/24762 and/or https://github.com/Azure/azure-powershell/pull/25293 converts my array of strings (which seem to be wrapped inside a PSObject) to a hashtable as the helper function iterates to the PSObject's properties and outputs the Length property as a hashtable.
I've removed the signature and changed the function and the function works if I add another If statement so strings will just be returned as is: