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
  • Get Guest VM OperationReady State and VMware Tools Running

    Contributor sjaganat16

    Get Guest VM state is in Operation Ready and the VMware Tools is in running state This is used before running any Guest Operations Tasks.
    vSphere vRealize Orchestrator Plug-in SDK JavaScript
    Download

    177 Downloads

    0 Comments

    Updated 6 months ago

  • Yet Another vRO vAPI vCenter Tagging Package

    Contributor ejvmw

    vRO package containing workflows and actions to manage vCenter tags and add/remove them from VMs. The core vAPI tagging actions were created using code from https://code.vmware.com/user/tnavarro1 and ...
    vRealize Orchestrator vRealize Orchestrator Plug-in SDK JavaScript
    Download

    73 Downloads

    0 Comments

    Updated 6 months ago

  • vCenter Template Sync using vRealize Orchestrator

    Contributor ejvmw

    The com.vmware.pso.vc.templatesync package provides a set of workflows that can sync VM templates between vCenter servers.  The vRO appliance pulls the specified VM templates from a source vCenter, st ...
    vRealize Orchestrator JavaScript
    Download

    76 Downloads

    1 Favorite

    0 Comments

    Updated 6 months ago

  • Inflate all Thin disks on vCenter VM to Thick Eager Zero

    Contributor ejvmw

    Convert all thin provisioned disks on a vCenter VM to thick eager zero.
    vRealize Orchestrator Plug-in SDK JavaScript
    Download

    122 Downloads

    0 Comments

    Updated 6 months ago

  • Get VM Folder By Path in vCenter

    Contributor ejvmw

    vRO action to search for a vCenter VM folder by path. Example vCenter Folder Path: /RegionA01/vm/Linux/Templates Where RegionA01 is the Datacenter name, and Linux/Templates is the VM folder path to lo ...
    vRealize Orchestrator JavaScript
    Download

    107 Downloads

    0 Comments

    Updated 6 months ago

  • Update Notes for vCenter VM

    Contributor ejvmw

    Update the Notes for a VM in vCenter
    vRealize Orchestrator JavaScript
    Download

    155 Downloads

    0 Comments

    Updated 6 months ago

  • Get Notes for vCenter VM

    Contributor ejvmw

    Return the Notes for a VM in vCenter
    vRealize Orchestrator JavaScript
    Download

    138 Downloads

    0 Comments

    Updated 6 months 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

    452 Downloads

    0 Comments

    Updated 1 year ago

  • Get Shared Datastore for given ESXi Host Pool and VM

    Contributor sjaganat16

    Get shared datastored for given esxi host, virtual machine and resource pool. This code can also be used for vRA Change Reservation for a VM process.
    vSphere vRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
    Download

    204 Downloads

    0 Comments

    Updated 7 months 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

    428 Downloads

    0 Comments

    Updated 1 year ago