Active IQ Unified Manager Discussions

Create VM command?

solal
3,543 Views

Hi all.

Did anyone try to play with or create a command to create VMware VM via powercli?

I see one doesn't exist and would like to know if there's a need to write one down or does someone has it ready (can't find in WFA...)

Most similar is the Clone VM command...

Thanks guys.

Solal.

1 ACCEPTED SOLUTION

abhit
3,543 Views

Hi Solal:

You can get some power-cli examples here to create VM here:

https://www.vmware.com/support/developer/PowerCLI/PowerCLI51/html/New-VM.html

You can look into the VCenter data acquisition script bundled with WFA for reference.

You can clone that in a command and modify.

Initially you can hard-code and not use any dictionary entries to make sure the command works to create the VM.

Later, you probably would need to create some dictionary entries to meet your workflow needs.

Let us know if you need any more help.

Some thread related to WFA here in case

https://communities.netapp.com/thread/29197

Regards

Abhi

View solution in original post

6 REPLIES 6

abhit
3,543 Views

Hi Solal:

Jeremy Goodrum has written couple of packs for VMware.

Can you please check if any of these will help.

https://communities.netapp.com/docs/DOC-22918

http://www.virtpirate.com/tag/wfa/

Regards,

Abhi

solal
3,543 Views

Hey Abhi.

I'm familiar with those (quite amazing) Pirate Packs the Jeremy created.

Looked again and didn't find a create VM in VC command.

Solal.

abhit
3,544 Views

Hi Solal:

You can get some power-cli examples here to create VM here:

https://www.vmware.com/support/developer/PowerCLI/PowerCLI51/html/New-VM.html

You can look into the VCenter data acquisition script bundled with WFA for reference.

You can clone that in a command and modify.

Initially you can hard-code and not use any dictionary entries to make sure the command works to create the VM.

Later, you probably would need to create some dictionary entries to meet your workflow needs.

Let us know if you need any more help.

Some thread related to WFA here in case

https://communities.netapp.com/thread/29197

Regards

Abhi

solal
3,543 Views

Thank Abhi.

I already begun the writing of it but tried to see if someone already prepared one before.

I have several for now (create VM from scratch, clone VM from template...) that are ready.

I'll upload when they'll be more sorted.

Thanks!

Solal.

adaikkap
3,543 Views

Thanks Solal, pls share your work once done.

Regards

adai

solal
3,543 Views

Of course Adai

uploading as files.

Solal.

Public