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.


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



1 - 2 of 2 Results Sample vSAN 6.6
  • Setup vSAN Stretched Cluster DRS Rules

    Contributor Jase McCarty

    This script can be run against a vSAN Stretched Cluster to create Host Groups and VM Groups. The script requires PowerCLI 6.5.1, released 4/20/2017 and has been tested against vSAN 6.6. Using PowerCLI ...
    VMware PowerCLI PowerShell



    Updated 4 years ago

  • vSAN 6.6 Encryption Rekey

    Contributor Jase McCarty

    This script will initiate a Rekey of a vSAN Cluster. Shallow Rekeying (KEK Only) or Deep Rekeying (DEK Also) are supported, as well as Reduced Redundancy if necessary. This requires PowerCLI 6.5.1 a ...
    VMware PowerCLI PowerShell



    Updated 3 years ago