Skip to content

Commit 3013152

Browse files
Merge pull request #261471 from SnehaSudhirG/18Dec-managerunbooksupdate
added new section
2 parents b1263c5 + 8cffd06 commit 3013152

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

articles/automation/manage-runbooks.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,20 @@ When your runbook has been published, you can schedule it for operation:
427427
1. Once the schedule is created, highlight it and click **OK**. It should now be linked to your runbook.
428428
1. Look for an email in your mailbox to notify you of the runbook status.
429429

430+
## Restore deleted runbook
431+
432+
You can recover a deleted runbook through PowerShell scripts. To recover a runbook, ensure that the following conditions are met:
433+
434+
- The runbooks to be restored were deleted in the past 29 days.
435+
- The Automation account for that runbook exist.
436+
- The *Automation Contributor* role permission is granted to the System-assigned managed identity of the Automation account.
437+
438+
### PowerShell script
439+
440+
- Execute the PowerShell script as a job in your Automation account to restore the deleted runbooks.
441+
- Download the PowerShell [script](https://github.com/azureautomation/Restore-Runbook) from GitHub. Alternatively, you can [import](#import-a-runbook-from-the-azure-portal) the PowerShell script named *Restore Automation runbook* from Runbook Gallery. Provide the name of the runbook that is to be restored and run it as a job in Azure Automation to restore the deleted runbooks.
442+
- Download the [script](https://github.com/azureautomation/List-Deleted-Runbooks) from GitHub or [import](#import-a-runbook-from-the-azure-portal) the PowerShell script named *List Deleted Automation Runbook* from Runbook Gallery, to identify the names of the runbooks that were deleted in last 29 days.
443+
430444
## Obtain job statuses
431445

432446
### View statuses in the Azure portal

0 commit comments

Comments
 (0)