Azure Automation Account - Powershell runbook stuck in Starting (intermittently)

Justin Coon 50 Reputation points
2023-06-09T19:31:53.0233333+00:00

Azure Automation Account - We have a Powershell runbook stuck in Starting (intermittently). Sometimes it works, other times its just stuck in Starting phase and never moves. Can't stop or cancel it

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,173 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Ari 0 Reputation points
    2024-01-09T09:34:31.7266667+00:00

    Same as the original poster, although we able to stop the job. The job immediately suspended after it ran.

    Using Managed Identity with PowerShell 7.2.

    Location: Southeast Asia

    The issue only started this year (3 Jan 2024), there was no issue last year.

    {
        "id": "/subscriptions/d23b25b0-1858-4c34-942a-7a734243fcfe/resourceGroups/xxxxxxx/providers/Microsoft.Automation/automationAccounts/configure-elasticpool-dtu/jobs/SCH_d23b25b0-1858-4c34-942a-7a734243fcfe-d23b25b0-1858-4c34-942a-7a734243fcfe",
        "name": "SCH_d23b25b0-1858-4c34-942a-7a734243fcfe_d23b25b0-1858-4c34-942a-7a734243fcfe",
        "type": "Microsoft.Automation/AutomationAccounts/Jobs",
        "properties": {
            "jobId": "d23b25b0-1858-4c34-942a-7a734243fcfe",
            "creationTime": "2024-01-06T16:00:02.5883836+00:00",
            "provisioningState": "Suspended",
            "status": "Suspended",
            "statusDetails": "None",
            "startedBy": "",
            "startTime": null,
            "endTime": null,
            "lastModifiedTime": "2024-01-06T16:00:53.7878749+00:00",
            "lastStatusModifiedTime": "2024-01-06T16:00:53.7878749+00:00",
            "exception": "Job was suspended due to an internal error. Please retry after sometime.",
            "parameters": {
                "xxx": "\"xxx\"",
                "Edition": "\"Standard\"",
                "ResourceGroupName": "xxx\"",
                "Dtu": "100",
                "PoolName": "\"xxx\"",
                "DtuMax": "100",
                "DtuMin": "0"
            },
            "runOn": "",
            "runbook": {
                "name": "scaleup2023"
            }
        }
    }
    

  2. Harsh Damania 0 Reputation points
    2024-01-09T14:42:06.6633333+00:00

    same issue in north europe. all automation account runbook using powershell core 7.1 and 7.2 are queued..or suspended

    0 comments No comments

  3. Aleksandr Melnikov 0 Reputation points
    2024-01-13T05:36:14.1733333+00:00

    Same here, azure automation account, python 3.10, East-US, it gets stuck in the 'starting' status every other time. This has been going on for several months now. It doesn't produce any logs because it can't even start. Even after an hour, it remains in the 'starting' status, and I have to stop it using the PowerShell CLI.
    User's image

    0 comments No comments

  4. Abdullah Miah 31 Reputation points
    2024-05-03T15:37:53.6233333+00:00

    Has anyone figured out why this is happening? I have code which requires PS 7.2 but the runbooks just go into SUSPENDED state. I see not logs or error on the Automation Account nor on the Hybrid Worker.

    0 comments No comments