Is it possible to restore previous version of runbook once published?

usman k 20 Reputation points
2026-02-12T12:04:10.94+00:00

Is it possible to restore previous version of runbook once published? Any idea

Azure Automation
Azure Automation

An Azure service that is used to automate, configure, and install updates across hybrid environments.

0 comments No comments

Answer accepted by question author

Naveena Patlolla 9,665 Reputation points Microsoft External Staff Moderator
2026-02-12T12:42:33.5433333+00:00

Hi usman k
You can also check this option: Go to your Runbook Jobs, open one of the previous jobs, and click on View source snapshot. There you will find the previous version of your runbook.
User's image

User's image

Please let me know if you face any challenge here, I can help you to resolve this issue further

Provide your valuable Comments.

Please do not forget to "Accept the answer” and “upvote it” wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Marcin Policht 100.1K Reputation points MVP Volunteer Moderator
    2026-02-12T12:09:30.4366667+00:00

    Refer to https://learn.microsoft.com/en-us/answers/questions/5764039/how-to-restore-previous-version-of-runbook-after-p

    Azure Automation does not support restoring or rolling back to a previous published version of a runbook. When a runbook is published, it permanently replaces the earlier published version, and Azure Automation does not maintain version history for published runbooks.

    The only supported rollback scenario is reverting a draft to the last published version before publishing. Once published again, rollback is not possible.

    Azure supports recovery only for deleted runbooks (within ~29 days) using PowerShell or REST APIs, which does not apply to version rollback.

    Microsoft recommends maintaining runbooks in an external source control system (such as Azure DevOps or GitHub) and importing them into Azure Automation to manage versions safely.

    What is supported (to avoid confusion):

    1. Revert Draft to Last Published (Only before publishing): If changes are made in Draft and not yet published, you can discard the draft and revert back to the last published version.
    2. Restore a deleted runbook (NOT previous version): If a runbook itself is deleted, Microsoft allows recovery within ~29 days using PowerShell/REST.
    • Supported only for deleted runbooks
    • Does not restore earlier published versions

    What is NOT supported:

    • Restoring a previous published version
    • Viewing published version history
    • Rolling back after publish
    • API / PowerShell / Portal‑based rollback. Azure Automation does not store historical published versions.

    Because rollback is not supported, Microsoft recommends external version control, such as:

    • Azure DevOps Repos
    • GitHub
    • Maintaining source‑controlled runbooks and importing them into AutomationAzure Automation does not support restoring or rolling back to a previous published version of a runbook. When a runbook is published, it permanently replaces the earlier published version, and Azure Automation does not maintain version history for published runbooks. The only supported rollback scenario is reverting a draft to the last published version before publishing. Once published again, rollback is not possible. Azure supports recovery only for deleted runbooks (within ~29 days) using PowerShell or REST APIs, which does not apply to version rollback. Microsoft recommends maintaining runbooks in an external source control system (such as Azure DevOps or GitHub) and importing them into Azure Automation to manage versions safely. What is supported (to avoid confusion):
      1. Revert Draft to Last Published (Only before publishing): If changes are made in Draft and not yet published, you can discard the draft and revert back to the last published version.
        1. Restore a deleted runbook (NOT previous version): If a runbook itself is deleted, Microsoft allows recovery within ~29 days using PowerShell/REST.
          • Supported only for deleted runbooks
            • Does not restore earlier published versions
      What is NOT supported:
      • Restoring a previous published version
        • Viewing published version history
          • Rolling back after publish
            • API / PowerShell / Portal‑based rollback. Azure Automation does not store historical published versions.
      Because rollback is not supported, Microsoft recommends external version control, such as:
      • Azure DevOps Repos
      • GitHub
      • Maintaining source‑controlled runbooks and importing them into Automation

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    Was this answer helpful?

    0 comments No comments

Your answer

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