Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

vSphere

v4.1.0 published on Wednesday, Nov 24, 2021 by Pulumi

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.

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",
            });
        });
}