Import release pipeline automatically into DevOps Services

Hello Team,

Is it possible to import the release pipeline using any kind of scripting?

The scenario is something like below.

I will create separate folders manually, ex. QA, Stage, Development.

image

I have multiple release pipelines. Let’s assume 20. I have exported those 20 release pipeline in the local drive. Now, if I have to import those release pipeline, I would have to import it manually 60 times… Is there a script available (Azure CLI, Powershell or other) that would help in importing the release pipeline automatically?

Thank you!!