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://learn.microsoft.com/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.
Please do not forget to "Accept the answer” wherever the information provided helps you, this can be beneficial to other community members.