I have this script to auto-start Vm's
Foreach($VM in $WithoutTags)
if($value1 -eq "True" -and $value2 -eq "Start VM")
$ResourceGroupName = $vm | select -expandproperty resourcegroupname
Write-output "$($VM.Name) is starting"
Start-Azurermvm -Name $VM.Name -ResourceGroupName $ResourceGroupName -ErrorAction Continue ;
Write-output "Not starting the VM $VM.Name"
Problem is that there are Vm's that take a long time to start up therefore it gets stuck for a long time, until it starts up the next vm in the foreach loop. Is there a way I can start all vm's at once? thank you in advance for your help.