Error while running a runbook

MoTaar 290 Reputation points
2024-03-21T16:05:44.2433333+00:00

Hello, Do you have an idea why a runbook that was working fine is now providing this error:

Failed
The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Operation returned an invalid status code 'Forbidden'
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,120 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,071 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jing Zhou 2,240 Reputation points Microsoft Vendor
    2024-03-22T09:30:50.0866667+00:00

    Hello,

    Thank you for posting in Q&A forum.

    This error usually indicates that your running command has been blocked, possibly due to permission issues or restricted access. You can check your permission settings to ensure that you have sufficient permissions to perform the operation. Additionally, you can check the permission settings of the target resource to ensure that you have sufficient permissions to access it.

    Hope this answer can help you well.

    Best regards,

    Jill Zhou

    0 comments No comments

0 additional answers

Sort by: Most helpful