VMware Cloud Community
gaurang033
Contributor
Contributor

Delete Existing VM and Create New

Hi Guys,

Is there any way to delete the existing VM from ESX and Create New one programmatically. I will be using Linux (Centos) as the operating system.

I have read some articles and blog about the VMware API, but there are lots of different API, would someone guide me which one I need to download ?

Do i need to install any other software apart from this API ?

Gaurang Shah

Tags (2)
0 Kudos
1 Reply
Borja_Mari
Virtuoso
Virtuoso

Hello,

it can be done using powershell/powercli:

Delete

Powershell: Shutdown VM and Delete From Disk | Red Shirt

Create

vSphere PowerCLI: Create a Virtual Machine

VMware vSphere 5.1

Re: Create VM using PowerCLI and csv file

Create multiple VMs using PowerCLI | VCDX56

Hope it helps Smiley Happy

Best regards,

Pablo

------------------------------------------------------------------------------------------------- PLEASE CONSIDER AWARDING any HELPFUL or CORRECT reply. Thanks!! Por favor CONSIDERA PREMIAR cualquier respuesta ÚTIL o CORRECTA . ¡¡Muchas gracias!! VCP3, VCP4, VCP5-DCV (VCP550), vExpert 2010, 2014 BLOG: http://communities.vmware.com/blogs/VirtuallyAnITNoob
0 Kudos