Differences
This shows you the differences between the selected revisions of the page.
2016-11-21 | 2016-11-21 | ||
link update (martin) | using ps> interwiki link (martin) | ||
Line 134: | Line 134: | ||
* locate source or destination paths of the transfer using WebJob [[#environment|environment variables]]; | * locate source or destination paths of the transfer using WebJob [[#environment|environment variables]]; | ||
* [[#log|print the session log to the standard output]], so that it is available from Azure Management Portal; | * [[#log|print the session log to the standard output]], so that it is available from Azure Management Portal; | ||
- | * not use ''[[https://technet.microsoft.com/en-us/library/hh849877.aspx|Write-Host]]'' cmdlet as there is no console to write to in the Azure WebJob, use ''[[https://technet.microsoft.com/en-us/library/hh849921.aspx|Write-Output]]'' instead. | + | * not use ''[[ps>microsoft.powershell.utility/write-host|Write-Host]]'' cmdlet as there is no console to write to in the Azure WebJob, use ''[[ps>microsoft.powershell.utility/write-output|Write-Output]]'' instead. |
An example PowerShell script (''backup.ps1'') that backs up the WebSite to a remote SFTP server: | An example PowerShell script (''backup.ps1'') that backs up the WebSite to a remote SFTP server: |