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

  • App Modernization

  • Automation Tools

  • Cloud Management

  • Compute Virtualization

  • Desktop & App Virtualization

  • Developer Tools

  • Digital Workspace

  • Hybrid Cloud & Data Center Infrastructure

  • Hyperconverged Infrastructure

  • Multi-Cloud Operations

  • Private & Hybrid Cloud

  • Storage & Availability

  • Virtual Cloud Networking

  • Other Platform

Contributor

Language

1 - 10 of 17 Results Sample vsphere
  • Deploy OVF Template

    Contributor tianhao64

    Demonstrates the workflow to deploy an OVF library item to a resource pool in VMware Cloud on AWS. Install vSphere Automation Python SDK to run the sample: https://github.com/vmware/vsphere-automation ...
    VMware Cloud on AWS API VMware Cloud on AWS vSphere Automation SDK for Python Python
    Download

    1190 Downloads

    0 Comments

    Updated 11 months ago

  • Get ESXi ResourcePool

    Contributor sjaganat16

    Get ESXi Resource Pool using Compute Cluster.
    vSphere vRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
    Download

    509 Downloads

    0 Comments

    Updated 1 year ago

  • vCollect All VMs details with Hosts Info for All vCenter

    Contributor szemmali

    ...   Overview: vCollect provides a PowerCLI scripts that produce infrastructure audit and reports of VMware SDDC (vSphere, NSX, vCloud DIrector, vRealize Automation) environments in CSV or Excel f ...
    vSphere PowerCLI PowerShell
    Download

    835 Downloads

    1 Favorite

    0 Comments

    Updated 1 year ago

  • Create App Volumes vCenter Roles

    Contributor saintdle1

    This script is used to create a new roles on your vCenter server for App Volumes 2.x, 3.x and 4.x     The newly created role will be filled with the needed permissions for App Volumes     The permissi ...
    App Volumes vSphere PowerShell
    Download

    37 Downloads

    0 Comments

    Updated 6 days ago

  • vCollect Storage By Partition for each vCenter

    Contributor szemmali

    Overview: Many of projects I work on involve collecting an inventory of basic information about the #Disk_Path per VM in the environment per vCenter. VMware Code: https://code.vmware.com/samples/5120 ...
    vSphere VMware PowerCLI PowerShell
    Download

    850 Downloads

    1 Favorite

    0 Comments

    Updated 1 year ago

  • List Tasks

    Contributor tianhao64

    Demonstrates how to list tasks with given status Please install vSphere Automation Python SDK to run the sample: https://github.com/vmware/vsphere-automation-sdk-python
    vSphere Automation SDK for Python VMware Cloud on AWS Python
    Download

    401 Downloads

    0 Comments

    Updated 6 months ago

  • Cancel Task

    Contributor tianhao64

    Demostrates how to cancel a running task in VMware Cloud on AWS. To run the sample, please first install vSphere Automation Python SDK: https://github.com/vmware/vsphere-automation-sdk-python
    VMware Cloud on AWS vSphere Automation SDK for Python VMware Cloud on AWS API Python
    Download

    431 Downloads

    0 Comments

    Updated 6 months ago

  • Getting Cluster usage data on CPU Memory and Storage resources

    Contributor vThinkBeyondVM

    What this script does: Report on Cluster usage/capacity data on CPU, Memory and Storage resources across all the cluster in a vCenter server. Author:  Vikas Shitole   www.vThinkBeyondVM.com    
    vSphere Management SDK VMware PowerCLI PowerShell
    Download

    873 Downloads

    1 Comment

    Updated 2 years ago

  • DRS Rules For all VMs In Cluster

    Contributor vThinkBeyondVM

    What this script does: Report on DRS cluster VMs and its assciated VM-VM affinity/anti affinity rules. Author: Vikas Shitole www.vThinkBeyondVM.com
    vSphere Management SDK VMware PowerCLI PowerShell
    Download

    583 Downloads

    0 Comments

    Updated 3 years ago

  • vSphere 6.7 Rest API - get templates in content library

    Contributor simplenetwks2

    I have been working with vCenter 6.7 Rest API.  Customer ask to get templates from content library.  Looked everywhere, but details could not be found.  Decent amount of trial and error to get working ...
    vSphere Automation SDK for REST Shell Script
    Download

    106 Downloads

    0 Comments

    Updated 4 months ago