PowerShell Workflow
Edit|Remove
    $Credential = Get-Credential -Message "Please supply username and password for Azure authentication" 
    $StartTime = Get-Date -Year 2014 -Month 1 -Day 1 
    $EndTime = Get-Date -Year 2015 -Month 1 -Day 1 
    Move-RunbookLogsToAzureBlobStorage      -AutomationAccountName "myautomationaccount" ` 
                                            -StorageAccountName "mystorageaccount" ` 
                                            -StorageContainerName "mystoragecontainer" ` 
                                            -LogRootFolder "logs" ` 
                                            -SubscriptionName "mysubscription" ` 
                                            -Credential $Credential ` 
                                            -RunbookName "My-Runbook" ` 
                                            -StartTime $StartTime ` 
                                            -EndTime $EndTime 
 

This runbook will archive logs for a given runbook and for whose jobs started in a given time period to a given Azure BLOB Storage account. The Azure storage account and location therein is specified via the $SubscrptionName, $StorageAccountName, $StorageContainerName, $LogRootFolder parameters. The runbook whose logs are to be archived is specified via the $AutomationAccountName & $RunbookName parameters. The time period whose jobs should be archived is specified via $StartTime & $EndTime parameters.

The code snippet above can be used to run this runbook, it demonstrates the required parameters.

See more information in associated blog post http://sqlblog.com/blogs/jamie_thomson/archive/2014/11/25/archiving-azure-automation-logs-to-azure-blob-storage.aspx