<p>As suggested by @030, I have prepared two screenshots that show how to connect the .yml files with the build pipeline. </p>

<ol>
<li><p>Rename the .yml file in the repository</p></li>
<li><p>Open the pipeline editor
<a href="https://i.sstatic.net/KJX7y.png" rel="noreferrer"><img src="https://i.sstatic.net/KJX7y.png" alt="Pipeline editor"></a></p></li>
<li><p>Select the file from the dropdown
<a href="https://i.sstatic.net/4iStF.png" rel="noreferrer"><img src="https://i.sstatic.net/4iStF.png" alt="enter image description here"></a></p></li>
<li><p>Select the in step 1 renamed *.yml file and click on <code>save</code>.</p></li>
</ol>

<p>After the existing .yml is assigned, the pipeline works as before the renaming.</p>

CC BY-SA 4.0
2019-11-04T17:56:06.070Z
+1 for adding actual screenshots and the concrete steps.
030
CC BY-SA 4.0
2019-11-04T13:15:28.480Z
2019-11-04T18:03:08.600Z
2019-11-04T18:03:08.600Z
Ned Flanders
<p>This has been fixed in recent version of Azure DevOps. Currently you can easily rename or move the pipeline in the list of pipelines while clicking on 3 dots and select Rename/move
<a href="https://i.sstatic.net/XrVfX.png" rel="noreferrer"><img src="https://i.sstatic.net/XrVfX.png" alt="enter image description here" /></a></p>
<p>and change your location or move the pipeline
<a href="https://i.sstatic.net/BlQDF.png" rel="noreferrer"><img src="https://i.sstatic.net/BlQDF.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2021-12-18T20:00:33.710Z
this is a useful feature, but it doesn't change what filename the pipeline looks for
Vince Bowdren
CC BY-SA 4.0
2020-07-30T13:15:20.833Z
2020-07-30T13:15:20.833Z
Tomasz Chudzik
<p>According to <a href="https://developercommunity.visualstudio.com/content/problem/437066/cannot-set-pipeline-name-with-yaml-file-in-azure-d.html" rel="noreferrer">this Azure Q&amp;A</a> it should be possible to change the name of the yaml file by clicking on "Edit in the visual designer".</p>

CC BY-SA 4.0
2019-11-03T15:00:11.057Z
This was it. :) But one should be aware, that this screenshot is old and today it looks very different.
Ned Flanders
CC BY-SA 4.0
2019-11-04T11:55:42.960Z
@NedFlanders Could you add a screenshot? You could choose to post another answer.
030
CC BY-SA 4.0
2019-11-03T11:21:12.370Z
2019-11-03T11:21:12.370Z
030
<p>I have a .NET Core application that has three build pipelines. (Windows, Linux, macOS)
In each of them, the application gets assembled a little different. This part works so far.</p>

<p>Azure created for each pipeline a .yml file in the root folder of the repository. </p>

<ul>
<li>azure-pipelines.yml (Linux Build)</li>
<li>azure-pipelines-1.yml (Windows Build)</li>
<li>azure-pipelines-2.yml (macOS Build)</li>
</ul>

<p>I would like to rename them to something like <em>azure-pipelines-<strong>platform</strong>.yml</em></p>

<p>But when I do so, the configuration in Azure gets broken. I can rename the build configuration, but not the file. And I find no way to configure the link between .yml file and Build config in DevOps</p>

<p>Is it generally not possible to rename the .yml files? </p>

<azure-devops><azure-pipelines><yaml>
Rename build pipeline .yml files in Azure DevOps
Ned Flanders
# Rename build pipeline .yml files in Azure DevOps

(Asked by: username_0 on 2019-11-02)

I have a .NET Core application that has three build pipelines. (Windows, Linux, macOS)
In each of them, the application gets assembled a little different. This part works so far.

Azure created for each pipeline a .yml file in the root folder of the repository.

* azure-pipelines.yml (Linux Build)
* azure-pipelines-1.yml (Windows Build)
* azure-pipelines-2.yml (macOS Build)

I would like to rename them to something like *azure-pipelines-**platform**.yml*

But when I do so, the configuration in Azure gets broken. I can rename the build configuration, but not the file. And I find no way to configure the link between .yml file and Build config in DevOps

Is it generally not possible to rename the .yml files?

**Tags:** azure-devops, azure-pipelines, yaml


---

## 3 answers

### Answer by username_1 on 2019-11-03. Score: 5 | Accepted answer

According to [this Azure Q&A](https://developercommunity.visualstudio.com/content/problem/437066/cannot-set-pipeline-name-with-yaml-file-in-azure-d.html) it should be possible to change the name of the yaml file by clicking on "Edit in the visual designer".

> **Comments:**
> **username_0**: This was it. :) But one should be aware, that this screenshot is old and today it looks very different.  
> **username_1**: @NedFlanders Could you add a screenshot? You could choose to post another answer.  

---

### Answer by username_0 on 2019-11-04. Score: 6

As suggested by @username_1, I have prepared two screenshots that show how to connect the .yml files with the build pipeline.

1. Rename the .yml file in the repository
2. Open the pipeline editor
   [![Pipeline editor](https://i.sstatic.net/KJX7y.png)](https://i.sstatic.net/KJX7y.png)
3. Select the file from the dropdown
   [![enter image description here](https://i.sstatic.net/4iStF.png)](https://i.sstatic.net/4iStF.png)
4. Select the in step 1 renamed \*.yml file and click on `save`.

After the existing .yml is assigned, the pipeline works as before the renaming.

> **Comments:**
> **username_1**: +1 for adding actual screenshots and the concrete steps.  

---

### Answer by username_2 on 2020-07-30. Score: 6

This has been fixed in recent version of Azure DevOps. Currently you can easily rename or move the pipeline in the list of pipelines while clicking on 3 dots and select Rename/move
[![enter image description here](https://i.sstatic.net/XrVfX.png)](https://i.sstatic.net/XrVfX.png)

and change your location or move the pipeline
[![enter image description here](https://i.sstatic.net/BlQDF.png)](https://i.sstatic.net/BlQDF.png)

> **Comments:**
> **username_3**: this is a useful feature, but it doesn't change what filename the pipeline looks for  

---

