title: Can I substring a variable in Azure Pipelines?
body: <p>I'm looking for a way to define a variable in my <code>azure-pipelines.yml</code> file where I can substring the <code>'Build.SourceVersion'</code> -> Use the first 7 characters only. </p>
  
  <p>Seems like there is no build-in function that can do such string operations in the documentation. Is there something I'm missing? </p>
  
  <p>My other approach would be to use a bash task and overwrite the variable there but finding something build-in that can do this would be way better solution.</p>