PowerCLI

 View Only
  • 1.  vSphere SDK for .NET help

    Posted Oct 15, 2009 04:58 PM

    Is there any sample code to create VM using vSphere SDK for .NET that is included in the PowerCLI package ? I am writing a .NET app to create and management VMs. Thanks.



  • 2.  RE: vSphere SDK for .NET help

    Posted Oct 15, 2009 08:22 PM

    [http://www.flickr.com/photos/ntpronl/4014284927/|http://IMGP1264 by ntpro.nl, on Flickr]In VMware VI and vSphere SDK: Managing the VMware Infrastructure and vSphere, Jin walks you through using the VMware VI SDK and the new vSphere 4.0 APIs to automate the management of ESX servers, ESX clusters, and VirtualCenter servers in any environment–no matter how complex. Drawing on his extensive experience working with VMware enterprise customers, he places the VMware VI SDK in practical context, presenting realistic samples and proven best practices for building robust, effective solutions. He demonstrates how to manage every facet of a VMware environment, including inventory, host systems, VMs, snapshots, clusters, resource pools, networking, storage, data stores, events, alarms, users, licenses, and scheduled tasks.



  • 3.  RE: vSphere SDK for .NET help

    Posted Oct 16, 2009 01:52 AM

    I found this on Code Central its C# http://communities.vmware.com/docs/DOC-10019

    I think Steves book leans closer to the Java side of the house :smileywink:



  • 4.  RE: vSphere SDK for .NET help

    Posted Oct 16, 2009 10:52 AM

    A good starting point could be the PowerCLI Developer's Guide.

    And have a look at this thread:



  • 5.  RE: vSphere SDK for .NET help

    Posted Oct 19, 2009 03:19 AM

    I don't use VI SDK, it is difficult to use...one has to deal with loads of code, certificates, login handlers, and then traverse through objects everytime....such a waste of time.

    Prefered way is to use superb automation work done is vi toolkit/powercli. Add reference to VMware.VimAutomation.dll in visual studio and start coding.

    Using VITK for .Net Development

    Sample code here... http://communities.vmware.com/message/1356439#1356439