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

    320 Downloads

    0 Comments

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

    105 Downloads

    1 Favorite

    0 Comments

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

    191 Downloads

    0 Comments

    Updated 9 months ago

  • Update Notes for vCenter VM

    Contributor ejvmw

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

    209 Downloads

    0 Comments

    Updated 9 months ago

  • Get Notes for vCenter VM

    Contributor ejvmw

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

    216 Downloads

    0 Comments

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

    99 Downloads

    0 Comments

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

    209 Downloads

    0 Comments

    Updated 9 months ago

  • 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

    246 Downloads

    0 Comments

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

    915 Downloads

    0 Comments

    Updated 6 months ago

  • Tagging Workflow

    Contributor VMware

    Tagging Workflow Demonstrates tagging CRUD operations Step 1: Create a Tag category. Step 2: Create a Tag under the category. Step 3: Retrieve the managed object id of an existing cluster from its na ...
    vSphere Automation SDK for Python Python
    Download

    567 Downloads

    0 Comments

    Updated 8 months ago

;