Tuesday, April 4, 2017

Connect, Start/Stop Azure VMs with powershell (en-EN)

Connect, Start/Stop Azure VMs with powershell (en-EN)

Identify Azure VMs


Result:


Start Azure VMs which name includes *Contoso* for example


Result:


If need to stop these VMs with powershell then:


Difference between powershell commands and Azure Management Portal that by using Powershell commands you can start or stop few VMs same time but from Management Portal you can't, You can do it one by one only. Imagine that you have more than 20 VMs. Then it'll better to use powershell.