<p>In short: you can change the default branch in the 'Get Sources' section of the pipeline settings screen.</p>
<p>In long:</p>
<ol>
<li>from the pipeline summary screen, press the <em>Edit</em> button to load the Edit screen</li>
<li>from the hamburger menu at top right, select <em>Triggers</em>; this loads the pipeline settings screen</li>
<li>in the settings screen, select the YAML tab over on the left</li>
<li>in the listing below, select 'Get sources'</li>
<li>in the edit pane to the right, there is a picker for 'Default branch for manual and scheduled builds', which will be ordinarily set to 'master' (or 'main'). Change this to 'develop' and save.</li>
</ol>
<p>The next time you manually queue up a pipeline run, the branch picker will default to 'develop'; but note that this also affects scheduled pipeline runs too, so be careful if you have a schedule.</p>

CC BY-SA 4.0
2021-12-16T16:12:03.070Z
2021-12-16T16:12:03.070Z
Vince Bowdren
<p>When I run a pipeline in Azure DevOps, I notice that the dropdown defaults to the master branch. I want it to default to the develop branch. How do I change this?</p>
<p>Picture for context:</p>
<p><a href="https://i.sstatic.net/efnkC.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/efnkC.png" alt="Context Picture" /></a></p>

<azure-devops><azure>
How To Change the Default Dropdown Pipeline in Azure Pipelines
Dumpcats
# How To Change the Default Dropdown Pipeline in Azure Pipelines

(Asked by: username_0 on 2021-10-07)

When I run a pipeline in Azure DevOps, I notice that the dropdown defaults to the master branch. I want it to default to the develop branch. How do I change this?

Picture for context:

[![Context Picture](https://i.sstatic.net/efnkC.png)](https://i.sstatic.net/efnkC.png)

**Tags:** azure-devops, azure


---

## 1 answers

### Answer by username_1 on 2021-12-16. Score: 1

In short: you can change the default branch in the 'Get Sources' section of the pipeline settings screen.

In long:

1. from the pipeline summary screen, press the *Edit* button to load the Edit screen
2. from the hamburger menu at top right, select *Triggers*; this loads the pipeline settings screen
3. in the settings screen, select the YAML tab over on the left
4. in the listing below, select 'Get sources'
5. in the edit pane to the right, there is a picker for 'Default branch for manual and scheduled builds', which will be ordinarily set to 'master' (or 'main'). Change this to 'develop' and save.

The next time you manually queue up a pipeline run, the branch picker will default to 'develop'; but note that this also affects scheduled pipeline runs too, so be careful if you have a schedule.


---

