VMware Sample Exchange

Browse and download code samples from VMware as well as code samples contributed by the VMware community. Log in to Sample Exchange using your MyVMware credentials to submit requests for new samples, contribute your own samples, as well as propose a sample as a solution for open requests.

Disclaimer: All sample content and code in Sample Exchange is licensed to you by the sample's author. VMware does not guarantee the samples; they are provided "AS IS". Use of this site is subject to the VMware Community Terms of Use.

Browse the list below for code samples from VMware and the community. You can filter the list of samples by selecting a platform or language, or enter other search keywords above.

Filters

SDK / Platform / Tool

  • Automation Tools

  • Cloud Management Platform

  • Cloud Native Applications

  • Data Center & Cloud Infrastructure

  • Desktop & Application Virtualization

  • Enterprise Mobility Management

  • Hybrid Cloud & Data Center Infrastructure

  • Networking & Security

  • Storage & Availability

  • Other Platform

Contributor

Language

1 - 10 of 41 Results Sample vSphere Automation
  • vRO Workflow - Attach a .csv file for bulk vcpu and vmem resource adds

    Contributor robertshaw

    This vRealize Orchestrator workflow package will receive a .csv file as input and modify VMs CPU and Memory size.  See example .csv file (notepad works fine) The workflow schema Workflow documentati ...
    vRealize Orchestrator Plug-in SDK vRO Package
    Download

    196 Downloads

    1 Favorite

    0 Comments

    Updated 1 year ago

  • SDRS VM Overrides

    Contributor vThinkBeyondVM

    .NOTES Product/Feature: vCenter Server/SDRS .NOTES Author: Vikas Shitole .NOTES Reference: https://pubs.vmware.com/vsphere-65/index.jsp#com.vmware.wssdk.apiref.doc/vim.StorageResourceManager.html#co ...
    VMware PowerCLI PowerShell
    Download

    350 Downloads

    1 Comment

    Updated 1 year ago

  • vCenter VM Placement

    Contributor VMware

    vCenter VM Placement Cluster names are not guaranteed to be unique within a vCenter instance, so we qualify our search using the Datacenter. If Folders are used, the search must be qualified using Fo ...
    vSphere Automation SDK for Python Python
    Download

    506 Downloads

    0 Comments

    Updated 1 year ago

  • OVF Import Export

    Contributor VMware

    OVF Import Export Demonstrates the workflow to import an OVF package into the content library, as well as download of an OVF template from the content library. Note: the workflow needs an existing VC ...
    vSphere Automation SDK for Python Python
    Download

    566 Downloads

    0 Comments

    Updated 2 years ago

  • Deploy OVF Template

    Contributor VMware

    Deploy OVF Template Demonstrates the workflow to deploy an OVF library item to a resource pool. Note: the sample needs an existing library item with an OVF template and an existing cluster with resou ...
    vSphere Automation SDK for Python Python
    Download

    837 Downloads

    0 Comments

    Updated 1 year ago

  • Library Publish Subscribe

    Contributor VMware

    Library Publish Subscribe Demonstrates the basic sync workflow to publish and subscribe content libraries. Note: the workflow needs an existing VC datastore with available storage. This sample is a ...
    vSphere Automation SDK for Python Python
    Download

    464 Downloads

    0 Comments

    Updated 2 years ago

  • Library CRUD

    Contributor VMware

    Library CRUD Demonstrates the basic operations of a content library. The sample also demonstrates the interoperability of the VIM and vAPI. Note: the workflow needs an existing VC DS with available s ...
    vSphere Automation SDK for Python Python
    Download

    512 Downloads

    0 Comments

    Updated 2 years ago

  • ISO Mount

    Contributor VMware

    ISO Mount Demonstrates the content library ISO item mount and unmount workflow via the mount and unmount APIs from the ISO service. This sample is a part of the VMware vSphere Automation SDK for Py ...
    vSphere Automation SDK for Python Python
    Download

    465 Downloads

    0 Comments

    Updated 1 year ago

  • vCenter VM Create Exhaustive VM

    Contributor VMware

    vCenter VM Create Exhaustive VM Demonstrates how to create a exhaustive VM with the below configuration: 3 disks, 2 nics, 2 vcpu, 2 GB, memory, boot=BIOS, 1 cdrom, 1 serial port, 1 parallel port, 1 f ...
    vSphere Automation SDK for Python Python
    Download

    883 Downloads

    0 Comments

    Updated 4 months ago

  • vCenter VM Hardware Boot Device

    Contributor VMware

    vCenter VM Hardware Boot Device Demonstrates how to modify the boot devices used by a virtual machine, and in what order they are tried. Sample Prerequisites: The sample needs an existing VM with the ...
    vSphere Automation SDK for Python Python
    Download

    492 Downloads

    0 Comments

    Updated 8 months ago