In this article I will explain how one can start multiple VMs on Azure using a pipeline automation. The steps you need to follow:
First create a service connection with your subscription. You should navigate to service connections -> azure resource manager and then select service principal (automatic)
You will then have to select the scope* the subscription or resource group this service connection will access.
In my scenario I added a friendly name of the subscription as Azure Subscription Service Connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When you run the pipeline you will need to provide the VM names. You can also run this pipeline on a schedule using a cron task. My vms are ubuntu1, windows-1
By running the pipeline
Then by navigating on Azure you can notice the VM as started.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here:
Cookie Policy