1. Packages
  2. Vsphere Provider
  3. Installation & Configuration
vSphere v4.12.1 published on Tuesday, Oct 22, 2024 by Pulumi

Vsphere Provider: Installation & Configuration

vsphere logo
vSphere v4.12.1 published on Tuesday, Oct 22, 2024 by Pulumi

    The Pulumi vSphere provider uses the vSphere SDK to manage and provision resources.

    Installation

    The vSphere provider is available as a package in all Pulumi languages:

    Configuring Credentials

    Pulumi relies on the vSphere SDK to authenticate requests from your computer to vSphere. Your credentials are never sent to pulumi.com. The Pulumi vSphere Provider needs to be configured with vSphere credentials before it can be used to create resources.

    Once the credentials are obtained, there are two ways to communicate your authorization tokens to Pulumi:

    1. Set the environment variables VSPHERE_USER, VSPHERE_PASSWORD and VSPHERE_SERVER:

      $ export VSPHERE_USER=XXXXXXXXXXXX
      $ export VSPHERE_PASSWORD=YYYYYYYYYYYY
      $ export VSPHERE_SERVER=ZZZZZZZZZZZZ
      
    2. Set them using configuration, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access:

      $ pulumi config set vsphere:user XXXXXXXXXXXX
      $ pulumi config set vsphere:password YYYYYYYYYYYY --secret
      $ pulumi config set vsphere:vsphereServer ZZZZZZZZZZZZ
      

    Remember to pass --secret when setting password so that it is properly encrypted.

    vsphere logo
    vSphere v4.12.1 published on Tuesday, Oct 22, 2024 by Pulumi