title: How do you get powershell script output in the deployment log for a vNext Release Template?
body: <p>This blog post is the only thing I have found that comes close to the problem but it doesn't explain how to configure the Deploy Using PS/DSC to run with the verbose option:
  <a href="http://nakedalm.com/create-log-entries-release-management/" rel="nofollow">http://nakedalm.com/create-log-entries-release-management/</a></p>
  
  <p>I can get this Agent-based Release Template to run the script:</p>
  
  <pre><code>Write-Debug "debug"
  Write-Output "output"
  Write-Verbose "verbose"
  Write-Warning "warning"
  </code></pre>
  
  <p>The drilling down into deployment log for this release provides a log with the lines:</p>
  
  <pre><code>output
  WARNING: warning
  </code></pre>
  
  <p>If I add -verbose to the Arguments field I also get a "VERBOSE: verbose" line in the log.</p>
  
  <p>This is great, but I need the access to the System Variables ($Stage, $BuildNumber, etc). When I create a vNext template to run the same script (instructions are here: <a href="http://www.visualstudio.com/en-us/get-started/deploy-no-agents-vs.aspx" rel="nofollow">http://www.visualstudio.com/en-us/get-started/deploy-no-agents-vs.aspx</a>), the log reports:</p>
  
  <pre><code>Copying recursively from \\vsalm\Drops2\TestBuild\TestBuild_20130710.3 to c:\Windows\DtlDownloads\my vnext component succeeded.
  </code></pre>
  
  <p>It is nice that this copying operation succeeded and all, but I'd like my script's output to be in this log as well. Does anyone have any idea about configuring a "Deploy Using PS/DSC" action so that the powershell script output is captured by Release Management? </p>