big-data-for-humans / azure-automation-tools

Set of tools for Azure Automation
MIT License
0 stars 0 forks source link

Export-AatAutomationRunbookLog should return an object #24

Open stvnrs opened 7 years ago

stvnrs commented 7 years ago

Issue description

Export-AatAutomationRunbookLog is designed to run interactively so it should return an object rather than just write log info to the output stream.

Proposed solution

Move the existing informational output to verbose and for each job logged emit a record like:

ExecutionId           : ae917cc7-081f-4334-8ff2-4708bf91aca1
ResourceGroupName     : resource-group-name
AutomationAccountName : automation-account-name
RunbookName           : runbook1
StorageAccountName    : storageaccountname
StorageContainerName  : containername
Path                  : /path-to-log-file/