About the author

My name is Donovan Brown and I am a Principal DevOps Manager with Microsoft with a background in application development. I also run one of the Nation’s fastest growing online registration sites for motorsports events DLBRacing.com. When I am not writing software I race cars for fun. DLBRacing.com has given me the opportunity to combine my two passions writing software and racing cars.

While
working on my demo for Ignite New Zealand 2016, I decided to create a Docker
Extension that would have a new Service Endpoint and a few tasks.I wrote my build task using PowerShell and
was using Write-Verbose to write useful information, but it did not appear
while my build was running.The only
values I saw were the Write-Host calls.

Once
the build was complete, I selected the Build Docker Image step and saw this:

As
you can see, the bold lines are the same lines I saw in the build real-time
output. The grey lines are the Write-Verbose calls.Be sure to set the system.debug variable to
true on the Variables tab or you will never see the Write-Verbose.