Workflows can use foreach in parallel: https://learn.microsoft.com/en-us/powershell/module/psworkflow/about/about_foreach-parallel?view=powershell-5.1
How to take backup of azure vms parellelly using powershell script
Azure-learning
56
Reputation points
How to take backup of azure vms parallelly in powershell script.
I have a script which is creating vault , taking the backup and checking the backup status until it is complete . It is reading vm info from a input csv file.
Input= "vmdata.csv"
$inputs = Import-Csv -Path $Input
foreach ($input in $inputs)
`` {
"Code for backup
}
but it is doing sequentially , what is the best way in powershell script to do it parallelly .
1 answer
Sort by: Most helpful
-
Ryan McCallum 1 Reputation point Microsoft Employee
2022-07-13T15:40:28.373+00:00