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

  • 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 20 Results Sample vsphere
  • Powercli script for compliance check of baseline with bulletinID as input - VC Level

    Contributor Sivakumar E. S

    This script works at VC level, where it will iterate through all the Datacenters in that VC and provide the compliance report. What the script does: 1. Connects to the VC server 2. Creates a patch bas ...
    VMware PowerCLI PowerShell
    Download

    208 Downloads

    0 Comments

    Updated 1 year ago

  • Powercli script for compliance check of baseline with bulletinID as input - Datacenter Level

    Contributor Sivakumar E. S

    This powercli script works at the datacenter level. This takes datacenter name as the input and does a compliance check against that datacenter in a VC. What the script does: 1. Connects to the VC ser ...
    VMware PowerCLI PowerShell
    Download

    203 Downloads

    0 Comments

    Updated 1 year ago

  • Create App Volumes vCenter Roles

    Contributor Dean Lewis

    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

    289 Downloads

    0 Comments

    Updated 2 years ago

  • vSphere 6.7 Rest API - get templates in content library

    Contributor Son Nguyen

    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

    455 Downloads

    1 Comment

    Updated 6 months ago

  • Multiple Hypervisor Dashboard v2

    Contributor Brock Peterson

    Designed in vROps 8.0 to show both your VMWare vSphere environment and your Microsoft Hyper-V estate.  The standard vCenter adapter from VMware and the Hyper-V management pack (http://documentation.bl ...
    vRealize Operations Manager vRealize Ops Dashboard
    Download

    358 Downloads

    0 Comments

    Updated 3 years ago

  • vRealize Operations Manager Dashboard - WCP namespace resource usage

    Contributor Dominik Zorgnotti

    ... ## Changelog 2020-04-27 - v1.1: Added more custom views to analyze Tanzu Kubernets Cluster resource usage ## How to import 1. Import the Views 2. Import the Dashboard ## Reason Once a cluster is e ...
    vRealize Operations Manager vRealize Ops Dashboard
    Download

    291 Downloads

    0 Comments

    Updated 3 years ago

  • Script to fetchAuditRecords

    Contributor VMware Inc

    How to use pyVmomi SDK for vSphere 7.0U3 to fetchAuditRecords   OSS pyVmomi is hosted in GitHub: https://github.com/vmware/pyvmomi The project's main page contains pointers to general instructions fo ...
    vSphere Python
    Download

    163 Downloads

    0 Comments

    Updated 1 year ago

  • vCollect Storage By Partition for each vCenter

    Contributor Saddam ZEMMALI

    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

    1352 Downloads

    1 Favorite

    0 Comments

    Updated 4 years ago

  • List Tasks

    Contributor Tianhao He

    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

    618 Downloads

    0 Comments

    Updated 3 years ago

  • Cancel Task

    Contributor Tianhao He

    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

    635 Downloads

    0 Comments

    Updated 3 years ago