VMware Cloud Community
esxinoob
Enthusiast
Enthusiast
Jump to solution

Cancel Deploy OVF template

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 ???

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
esxinoob
Enthusiast
Enthusiast
Jump to solution

They were started from a vSphere Client.

I can see both tasks in the get-task output. Also, I see the task ID, but I don't know hot to use the ID to stop a task... (printscreen attached)

The following command doesn't work:

Stop-Task -Task Task-task-108804

0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
esxinoob
Enthusiast
Enthusiast
Jump to solution

Perfect! Thank you.

0 Kudos