How coryrburns/azure-recovery-vault-report works
Project type and purpose
• This is an automation‐oriented reporting tool, implemented as a set of PowerShell scripts.
• Its goal is to fetch nightly Azure Recovery Services Vault backup job statuses and produce either:
• A CSV table report (backup_report_csv.ps1)
• An HTML email (backup_report_html.ps1 run locally, or backup_report_html_automation.ps1 as an Azure Automation Runbook)
File structure
• Top‐level scripts:
• backup_report_csv.ps1 – generates plain CSV output of all vault jobs
• backup_report_html.ps1 – generates and emails an HTML report via SMTP when run interactively
• backup_report_html_automation.ps1 – same HTML/email logic tailored for Azure Automation
• There are no “src” or “lib” folders; all logic lives directly in these three scripts.
• PowerShell modules (Azure.RecoveryServices, AzureRM.RecoveryServices.Backup) are external dependencies, plus SMTP credentials or RunAs credentials in Automation.
Key insights from README
• Two run contexts: local PowerShell vs. Azure Automation Runbook
• SMTP server configuration is embedded in the Send-HTML function and must be customized
• Azure Automation requires imported modules and RunAs credentials