I need to run nested Jobs i.e. one job for each subscription (Start-Job)

Copper Contributor


I have a scenario where I am executing run command on each VM/VMSS of a subscription and to acheive this i am using "Invoke-AzVMRunCommand" with -AsJob parameter and there after tracking the object returned until completion.


Now i want to execute same operation for all 100 subscriptions in my environment but i am not able to perform this using Start-Job -ScriptBlock , any idea?

0 Replies