vSphere

The vSphere provider for Pulumi can be used to provision any of the cloud resources available in vSphere. The vSphere provider must be configured with credentials to deploy and update resources in vSphere.

See the full API documentation for complete details of the available vSphere provider APIs.

Setup

The vSphere provider supports several options for providing access to vSphere credentials. See vSphere setup page for details.

Example

const vsphere = require("@pulumi/vsphere")
const dc = new vsphere.Datacenter("my-dc", {
  name: "Production-DataCenter",
});
import * as vsphere from "@pulumi/vsphere";
const dc = new vsphere.Datacenter("my-dc", {
  name: "Production-DataCenter",
});
import pulumi_vsphere as vsphere
dc = vsphere.Datacenter("my-dc",
  name='Production-DataCenter',
)
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	vsphere "github.com/pulumi/pulumi-vsphere/sdk/v3/go/vsphere"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		dc, err := vsphere.NewDatacenter(ctx, "test", &vsphere.DatacenterArgs{
			Name: pulumi.String("Production-DataCenter"),
		})
		if err != nil {
			return err
		}

		return nil
	})
}
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Vsphere;

class Program
{
    static Task Main() =>
        Deployment.Run(() => {
            var dc = new Vsphere.Datacenter("my-dc", new Vsphere.DatacenterArgs
            {
                Name = "Production-DataCenter",
            });
        });
}

Libraries

The following packages are available in packager managers:

The vSphere provider is open source and available in the pulumi/pulumi-vsphere repo.