title: How to modify Azure DevOps release definition variable from a release task?
body: <p>What is the easiest way to get key rotation to work for azure storage accounts from a AzureDevOps relase task? The current plan is to re-generate the old key after release to invalidate it, and have a fresh key that can be used on next deployment. But to get that to work it seems like I at least need to store the name of the key to use in a release variable.</p>
  
  <p>I had a look at he logging tasks (<a href="https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md" rel="noreferrer">https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md</a>), but that only changes the value in the current release and does not modify the release definition.</p>