Invoke-AzVMRunCommand returns a string output i want to have list of objects , is there anyway to get that .
I am using below cmdlets to fetch the output :
$out = Invoke-AzVMRunCommand -ResourceGroupName "Test" -VMName "PraveenTestVM7" -CommandId runpowershellscript -ScriptPath C:\Users\praveen.mittapalli\Desktop\RawDiskScript.ps1 -Verbose
$finaloutput = $out.Value[0].Message
The $finaloutput is a string but i need a list of object is there anyway to get that or convert it