Microsoft Azure
Azure automation runbook invocation error when declaring array, Unable to cast object of type... to System.Object[]
Today I was implementing a snapshot/restore mechanism for virtual machines with the help of Azure Automation. After importing my script in Azure Automation, I encountered an error while invoking it. The message was: Unable to cast object of type 'System.String' to type 'System.Object[]'