I have an azure organization with multiple projects and repositories. Whenever I make some commits in any repository in a project, a new release gets created under a pipeline with the same name as that repo under a different project and using CI/CD the same release gets deployed on a test environment. After testing the same on test env, I want to automate the process of deploying 100+ pipelines(for various different repos which I've updated) on production env. I'm fairly new to this can you suggest a way to automate this process.
I've looked into azure CLI and have seen that there is relation in the merge id created in the repo is displayed under that new release created(Like this release was created using this merge image), someway I can fetch that id and for that repos pipeline which was created deploy the same on a specific environment. Each pipeline has multiple releases hence I want to deploy on the release created with my merge.
FYI, I am updating a common value in all repos at once using a cli script, hence all PR's are created with the same task attached. Just mentioning this as there could be some way to fetch the merge id from PR's made using that task number.
Currently I'm trying to do this with gitbash + azure cli, I'm open to powershell, or even if there's a way to do this by creating a new pipeline which can handle this thing, I'm up to learning that also.
Thanks!