web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Set build version in a...
Power Automate
Unanswered

Set build version in azure devops release

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Team, 

 

I am planning to trigger my release pipeline through power automate and have use azure devops connector for that . I find ways to set the release variables but could not find how can i set the version of the build for which i want to create the release . could you please tell me how can i set the build number 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,851 Most Valuable Professional on at

    Hi @Phani,

     

    I would probably use some variables and a logging command of Azure Pipelines, https://docs.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands

     

    You could use a PowerShell task to execute these kind of commands.

     

    Below is an example of a flow which queues a new build, waits for it to finish and creates a release with the latest build number.

     

    releasenameandbuildnumber.png

     

    The end result should look something like like below:

    testrun_devopsrelease.png

     

    In Azure DevOps I used the settings below.

     

    1. Build Pipeline has the following variable

     

    buildpipeline_variable.png

     

    2. In the options the Build number format is set to use the new variable.

     

    custombuildnumber.png

     

    3. The Release Pipeline has the following variable.

     

    releasepipeline_variable.png

    4. The Release Pipeline uses a PowerShell task which updates the release name with a logging command.

     

    azuredevops_loggingcommand.png

     

    Hopefully this helps a bit?

  • PJ-10092242-0 Profile Picture
    Microsoft Employee on at

    Thanks for the details . I could not find the connection where you are creating this release for that build number only . I see that you are updating the release name using powershell task but how are you setting the build number for that release 

  • PJ-10092242-0 Profile Picture
    Microsoft Employee on at

    There might be several builds for my pipeline ( like  A, B, C ) but one will be tested by the testing team and certified i.e for ex  B , so when i create a release , i would like to create it for B but not C as C will be the latest one and it will take it by default, if i create a release but would like to have it with B or of my choice

  • PJ-10092242-0 Profile Picture
    Microsoft Employee on at

    @Expiscornovus : could you please provide input here 

  • Expiscornovus Profile Picture
    33,851 Most Valuable Professional on at

    Hi @Phani,

     

    Thanks for sharing a bit more detail about your requirements.

     

    Within the flow I shared earlier I queued a specific new build. Lets say B (that is selected in the Build Definition ID field). I added a delay which should cover the time which it needs for building, in my setup 1 minute. After that the new release is created with the latest build. Which should be B, because it has just been build via the flow.

  • Josephkm_lim Profile Picture
    64 on at

    Hi Phani and team

     

    Have you found the solution? I have the same issue.

     

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 840

#2
Valantis Profile Picture

Valantis 661

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard