title: Azure Devops logging commands in release pipeline
body: <p>I am trying to customize the output of my pipeline release through setting some env variables into a task.
  I found the following link:
  <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&amp;tabs=powershell" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&amp;tabs=powershell</a></p>
  
  <p>which however does not seem to work.
  What I am doing is simply to create a pipeline with a single task (either bash or PS), and there declaring the commands specified in the link through the inline version of the task.</p>
  
  <p>Has anyone already successfully managed to make these commands work?
  Do I do something wrong and/or incomplete?</p>
  
  <p>Does anyone have a better way to customise the pipeline with relevant information from a task? E.g. through the release name, or the description and/or tag of the specific release?</p>
  
  <p><em>Edit:</em></p>
  
  <pre><code>Write-Host "##vso[task.setvariable variable=sauce;]crushed tomatoes"
  Write-Host "##vso[task.setvariable variable=secretSauce;issecret=true]crushed tomatoes with garlic"
  
  Write-Host "Non-secrets automatically mapped in, sauce is $env:SAUCE"
  Write-Host "Secrets are not automatically mapped in, secretSauce is $env:SECRETSAUCE"
  Write-Host "You can use macro replacement to get secrets, and they'll be masked in the log: $(secretSauce)"
  </code></pre>
  
  <p>this is the code, copy and pasted. Now I tried also with the script, and it does not work either.
  I use an hosted windows agent.</p>