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

  • Application Management Services

  • 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 1364 Results Sample
  • List all inventory types

    Contributor DCAdminTest

    This sample code shows how to retrieve and list the following inventory types: datacenters, datastores, clusters, hosts, and vms. Get-AllInventoryTypes ReadMe File for Get-AllInventoryTypes Example T ...
    vSphere Management PowerShell
    Download

    4 Downloads

    0 Comments

    Updated 13 hours ago

  • Move a virtual machine to a given destination

    Contributor DCAdminTest

    Moves a virtual machine to the location that is specified by the Destination parameter.
    vSphere Management PowerShell
    Download

    5 Downloads

    0 Comments

    Updated 13 hours ago

  • Add ESXi host to cluster

    Contributor DCAdminTest

    Here is how to add an ESXi host to a Cluster.
    vSphere Management PowerShell
    Download

    5 Downloads

    0 Comments

    Updated 13 hours ago

  • VCF Get network pools

    Contributor dksudharshan

    Use the provided script to fetch network pool details, read through readme.txt before execution.
    VMware Cloud Foundation Python
    Download

    75 Downloads

    0 Comments

    Updated 1 day ago

  • vROPS Windows Server Checker Dashboard

    Contributor lannguyen

    On January 14th 2020 Microsoft will be officially ending its support for Windows 2008 Servers.  This Dashboard will instantly assess your environment for Windows 2008 Servers and below.  Instructions ...
    vRealize Operations Manager vRealize Ops Dashboard
    Download

    46 Downloads

    0 Comments

    Updated 1 day ago

  • Velocloud API POSTMAN Collection - using data files

    Contributor vfrancadesou

    This is a postman collection for interacting with the VeloCloud Ochestrator (VCO). It allow users to import a CSV or JSON file, and use the values from the data file in the requests and scripts An env ...
    VeloCloud Orchestrator POSTMAN Collection
    Download

    579 Downloads

    1 Favorite

    0 Comments

    Updated 1 day ago

  • Monitoring vCenter Services using PowerShell

    Contributor ipatsiotis

    This PowerShell script allows you to quickly check the status of vCenter Services. Desciption The script interacts with the REST based vSphere APIs in order to list the status of vCenter Services and ...
    vSphere PowerShell
    Download

    106 Downloads

    0 Comments

    Updated 2 days ago

  • Super Metric - Cluster Total Disk Space Less Local Datastores

    Contributor jddias

    If you'd like to have total available disk space for a cluster that doesn't include local datastore space.  This uses the "where" clause with looping to add up all child datastores that have the Summa ...
    vRealize Operations Manager vRealize Ops Super Metrics
    Download

    28 Downloads

    0 Comments

    Updated 6 days ago

  • PowerCLI vSAN Witness Deployment

    Contributor Jasemccarty

    This script deploys a vSAN 6.0/6.5/6.7/& 6.7 P01 Witness Appliance. It will: Configure networking Add the vSAN Witness to vCenter Allows either Management (vmk0) or vmk1 to have vSAN Traffic tagged ( ...
    VMware PowerCLI PowerShell
    Download

    506 Downloads

    0 Comments

    Updated 8 days ago

  • Monitoring Container VMs with vRealize Operations Manager

    Contributor rguske

    Treating Containers as First-Class Citizens is what vSphere Integrated Containers can offer to IT-(Dev)Ops Teams through instantiating a Container-Image as a Virtual Machine.  Therefore you do not hav ...
    vRealize Operations Manager vSphere Integrated Containers (VIC) vRealize Ops Dashboard
    Download

    254 Downloads

    2 Favorites

    0 Comments

    Updated 8 days ago

;