There are two jobs "Deploy OVF remplate" running in my vcenter.
Both of them stuck at 0%, that's why I canceled them via vSphere Client.
However, nothing happens.
How I can force to cancel the deployment process?
In my opinion, there should be a possibility to stop a task referencing to the ID?
Get-Task | Select Name,ID
Stop-Task ???
Did you already try something like this ?
First make sure this only returns the actual tasks you want to stop !
Get-Task -Status Running | where{$_.Name -like "OVF*"} | Stop-Task
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
How were these task started, from a script, from a vSphere client ?
Do you see the tasks when you do a Get-Task ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Did you already try something like this ?
First make sure this only returns the actual tasks you want to stop !
Get-Task -Status Running | where{$_.Name -like "OVF*"} | Stop-Task
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Perfect! Thank you.