Let's take a look at a simple example of using the Visual Studio Online REST API to retrieve information about a build using PowerShell. Then we'll take a look at how we can use the information we retrieved in a vNext build step.
Recently, at Mercury New Media we had a client request that we upload IIS log files to their server on a nightly basis. The request was to rename IIS logs to follow the requested naming convention and to upload the log files in a zip folder each night. We tossed a few ideas around like console apps, custom services and ultimately settled on a PowerShell script executed by our VM’s task scheduler to fulfill our client’s need. A simple yet effective solution that would be portable and flexible.