Search

Unable to cast object of type ‘System.String’ to type ‘System.Object[]’.

Updated: Mar 28, 2021

Environment: Azure Automation. Runbook Type: PowerShell.

Mostly this problem arises in Azure Automation Runbook, if you are passing Array Parameters to an Azure Automation Runbook. So, in my case I was trying to accept the input parameters. Multiple server name.

373 views0 comments