I am having some issue with Powershell Runbook which works fine locally

Samsul Islam 0 Reputation points
2023-10-02T11:11:35.9633333+00:00

I am having some issue with Powershell Runbook which works fine locally. Error as per screenshot attached and powershell script attached. Please can you help or advise. ThanksRunbook erroe

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,143 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,161 questions
{count} votes