title: How to read and set DevOps Pipeline variables using Azure PowerShell?
body: <p>I have an Azure Pipeline setup with MyVariable variable defined:</p>
  
  <p><a href="https://i.stack.imgur.com/dIiho.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dIiho.png" alt="MyVariable"></a></p>
  
  <p>How do I write Azure PowerShell Inline Script to read the variable, and set it to a value after some processing?</p>
  
  <p><a href="https://i.stack.imgur.com/dIiho.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dIiho.png" alt="You can write your azure powershell scripts inline here."></a></p>