Skip to content

Commit 2c815bf

Browse files
committed
added new section
1 parent e7f2cf8 commit 2c815bf

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

articles/automation/automation-webhooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Start an Azure Automation runbook from a webhook
33
description: This article tells how to use a webhook to start a runbook in Azure Automation from an HTTP call.
44
services: automation
55
ms.subservice: process-automation
6-
ms.date: 08/01/2023
6+
ms.date: 12/18/2023
77
ms.topic: conceptual
88
ms.custom: devx-track-azurepowershell, devx-track-arm-template
99
---

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+
- You can restore runbooks that were deleted in past 29 days.
435+
- Ensure that the Automation account for that runbook should exist.
436+
- You should grant *Automation Contributor* role permission 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 name of the runbook that is to be restored and run it as a job in Azure Automation to restore the deleted runbooks.
442+
- To identify names of the runbooks that were deleted in last 29 days, 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.
443+
430444
## Obtain job statuses
431445

432446
### View statuses in the Azure portal

0 commit comments

Comments
 (0)