Hi @Lars Kartevoll , <<Re-posting as answer for better reach and to help other community members who might be looking for similar answer.>> It works by giving parameter as string[]. For illustration, check below screenshot.
Automation Account for Powershell7.1 Does not support array input in Web
Lars Kartevoll
21
Reputation points
When inputting an array in Web-Azure. The array is not parsed as expected:
Runbook code:
param(
[System.String[]]$TestParameter
)
foreach($Entry in $TestParameter){
$Entry
}
Input when starting runbook:
["does", "This", "even", "work"]
Output from runbook:
[does
this
even
work]
This works fine in PowerShell 5.1 :/