title: Why is my azure pipeline cron job not running?
body: <p>I'm trying to get a cron schedule running by using yaml instead of azure pipeline scheduling.</p>
  <p>This is my YAML:</p>
  <pre><code>trigger: none
  pr: none
  schedules:
  - cron: &quot;0 0 * * *&quot;
    displayName: Daily midnight build when changes have been pushed
    always: true
    branches:
      include:
      - branch1
      - branch2
  variables:
  - group: BranchVariables
  </code></pre>
  <p>First it ran every time someone made a PR, figured out that I've to add &quot;pr: none&quot;. Now I don't know what is missing. What am I potentially missing? The ms documentation is sparsely and I already read all the related topics on this issue.</p>
  <p>Thanks in advance!</p>
  <p>Update:
  When I want to check the schedules on the pipeline it doesn't show me any and I can't sync
  <a href="https://i.stack.imgur.com/MCsE3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MCsE3.png" alt="enter image description here" /></a></p>
  <p>When I edit the pipeline I get the current yaml version on master branch we do not use anymore and is not the default branch. The pipeline should only run for the two branches I include in the yaml branches property.</p>
  <p><a href="https://i.stack.imgur.com/tPuLQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tPuLQ.png" alt="enter image description here" /></a></p>
  <p>The pipeline still didn't run this night and my guess was now that the yaml with the schedules must be also checked into the master branch. I figured out that the default branch can be set for every pipeline and I changed it now and finally can sync and see the schedules. What's still mysterious to me is that I had to add the default pipeline branch to the included branches before the schedules showed up. I'm now using only one included branch.</p>
  <p><a href="https://i.stack.imgur.com/9oAWL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9oAWL.png" alt="enter image description here" /></a></p>