Forum Discussion

abhishekmittal's avatar
abhishekmittal
Copper Contributor
Aug 10, 2020

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

Hi,

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?

No RepliesBe the first to reply

Resources