Closed ricmestre closed 1 year ago
Fixed with 1.0.8
Please reopen this issue, the fix just published is for another issue I opened https://github.com/microsoft/Microsoft365DSC/issues/3259
Fixes with 1.0.9
Please reopen this, I've just tested it with 1.3.0.9 and even though the issue is different is still not resolved, now it shows the following below:
PS C:> $Resource.Questions
Name Value
---- -----
CIMInstance MSFT_MicrosoftGraphaccesspackagequestion
Sequence 0
IsRequired False
Id 69e983df-f773-4e0f-ade9-33e83fbfbce2
odataType #microsoft.graph.accessPackageTextInputQuestion
IsSingleLineQuestion True
QuestionText {DefaultText}
PS C:\> $Resource.Questions.QuestionText
Name Value
---- -----
DefaultText Why do you want to be the cool 1234?
As mentioned previously the desired effect is:
PS C:\ $Resource.Questions
Name Value
---- -----
CIMInstance MSFT_MicrosoftGraphaccesspackagequestion
Sequence 0
IsRequired False
Id 69e983df-f773-4e0f-ade9-33e83fbfbce2
odataType #microsoft.graph.accessPackageTextInputQuestion
IsSingleLineQuestion True
QuestionText {System.Collections.Specialized.OrderedDictionary}
PS C:\ $Resource.Questions.QuestionText
Name Value
---- -----
CIMInstance MSFT_MicrosoftGraphaccessPackageLocalizedContent
DefaultText Why do you want to be the cool 1234?
This is most likely the same issue I reported today on https://github.com/microsoft/DSCParser/issues/32, not being able to retrieve deeply nested properties.
Given the blueprint at the bottom when converting it to a PSObject a specific property called QuestionText (inside Questions) for some reason is not being converted correctly, whereas every other properties are. Any thoughts on this?
The current output of that property is the following
Instead it should show the following, including the child property
And now the blueprint with this issue