I was working on an application modernization project. And there was a requirement to migrate application deployments from one project to another in Azure DevOps. deployment pipelines were heavily dependent on variable groups. So, we wanted to migrate these variables group to the new project.
Couldn't find any solutions in internet for this, so came up with the below scripts. You can grab the scripts from the below GitHub URL.