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

Justin Coon 60 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,371 questions
{count} votes

7 answers

Sort by: Most helpful
  1. Johnson Steve Digital Group Caxton House 5 Reputation points
    2024-09-11T14:07:48.2633333+00:00

    I have seen the same today with a script I've migrated over to 7.2 with an MSI. Ran for a couple hours then was suspended with the following error:

    Job was suspended due to an internal error.
    
    1 person found this answer helpful.

  2. Pedro Silva 5 Reputation points
    2024-09-24T17:32:42.1233333+00:00

    I have the same issue with multiple scripts.

    All using PowerShell 7.2, location Germany West Central, using a Managed Identity.

    Tried everything in terms of logs, cannot find a single clue. Verbose logging shows nothing strange.

    It just stops doing whatever it was doing and stays suspended. I then have to stop the suspended jobs.

    1 person found this answer helpful.
    0 comments No comments

  3. 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"
            }
        }
    }
    

  4. 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

  5. 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.