I am confused with ForEach-Object -Parallel. The following code has $blobs array with more than 2000 blobs. With the regular foreach I can print the names of each blob without a problem. Then using the ForEach-Object -Parallel just after the first foreach, nothing is printed. Why ?
foreach ($blob in $blobs) {
Write-Host $blob.Name
}
# Use parallel processing to process blobs concurrently
$blobs|ForEach-Object -Parallel {
param (
$blob)
Write-Host $blob.Name
} -ThrottleLimit 300