Runbooks missing [Authoring status = In Edit] After Automation Account Restore

Victor Aroma 0 Reputation points
2025-01-03T20:03:50.6+00:00

Hello All,

I accidently deleted an Azure Automation Account. I restore the account, but the Runbooks inside the accounts were not also restored.

They are listed in the manage section, but their Authoring Status is set to In Edit.

If I click on them to see the job history, the Resource ID is completely missing.

Has anyone run into this before, if so do you know how to resolve this and restore the runbooks.

I have tried the restore runbook option, but the runbooks are not found.

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

2 answers

Sort by: Most helpful
  1. Ashok Gandhi Kotnana 1,855 Reputation points Microsoft Vendor
    2025-01-06T09:05:27.5866667+00:00

    Hi @Victor Aroma ,

    Welcome to Microsoft Q&A Forum, thank you for posting your query here!

    Please refer to the below article which has the guided steps to recover the runbook using PowerShell script.

    Restore deleted runbook

    You can recover a deleted runbook through PowerShell scripts. To recover a runbook, ensure that the following conditions are met:

    • The runbooks to be restored were deleted in the past 29 days.
    • The Automation account for that runbook exist.
    • The Automation Contributor role permission is granted to the System-assigned managed identity of the Automation account

    Refer: https://zcusa.951200.xyz/en-us/azure/automation/manage-runbooks#restore-deleted-runbook

    let us know if you have any further queries. I’m happy to assist you further.    User's image

    Please do not forget to "Accept the answer” wherever the information provided helps you, this can be beneficial to other community members.


  2. Ashok Gandhi Kotnana 1,855 Reputation points Microsoft Vendor
    2025-01-09T18:13:46.0333333+00:00

    Hi @Victor Aroma ,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: Runbooks missing [Authoring status = In Edit] After Automation Account Restore

    Solution:

    If an automation account is deleted and restored, Runbooks remain in an "In Edit" status and can be recovered by creating a new Runbook with the same name to reconnect them to job history, allowing code recovery from job snapshots for republishing.
    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    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.