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 46 Results Sample PowerCLI
  • NSX LBaaS vRO Workflow Package

    Contributor sjaganat16

    This vRO Workflow Package ->  NSX LBaaS contains workflows to cover below items. Create and Delete NSX Edge LB. Update NSX Edge LB Server Pools Add a Virtual Server to an existing NSX edge LB Remove ...
    NSX for vSphere vRealize Orchestrator Plug-in SDK vRealize Orchestrator vRO Package
    Download

    177 Downloads

    1 Favorite

    0 Comments

    Updated 8 months ago

  • Function Remove-ContentLibraryItem

    Contributor A.Mikkelsen

    Function to remove an item in a Content Library. Tested on vCenter 6.5 & 6.7
    VMware PowerCLI PowerShell
    Download

    73 Downloads

    0 Comments

    Updated 2 months ago

  • Sample Exchange PowerShell ISE Integration

    Contributor AaronSpear

    SampleExchangePowerCLI Module A PowerShell Module that contains integration between VMware's new sample code repository Sample Exchange, and PowerShell ISE. Sample Exchange contains an ever growing ca ...
    VMware {code} VMware PowerCLI PowerShell
    Download

    393 Downloads

    1 Favorite

    0 Comments

    Updated 1 year ago

  • Importing VM annotation and notes from CSV file into vCenter

    Contributor kunaludapi

    As in the earlier blog after exporting VM annotations, notes and other useful information to CSV/excel file, It was time to Import those information on new vCenter, This new vCenter has new Esxi Serve ...
    VMware PowerCLI PowerShell
    Download

    677 Downloads

    0 Comments

    Updated 3 years ago

  • Get VM ip and hostname

    Contributor linotelera

    Sample script to get infos about VM ip and hostname if vmware-tools are running.
    VMware PowerCLI PowerShell
    Download

    561 Downloads

    0 Comments

    Updated 3 years ago

  • PowerCLI Script to Install VMware Host Patches

    Contributor BenLiebowitz

    I wrote this script to make my host patching more effecient.   When I was updating my hosts, while installing updates, I would get involved in other tasks, miss when the host came back after restartin ...
    vSphere Update Manager PowerCLI PowerShell
    Download

    513 Downloads

    0 Comments

    Updated 3 years ago

  • Power CLI

    Contributor aerodevil

    PowerCLI PowerCLI functions and scripts for managing VMware environments. The contained functions and scripts proved very useful when managing VMware environments with PowerCLI. Note: Many of them hav ...
    VMware PowerCLI PowerShell
    Download

    624 Downloads

    0 Comments

    Updated 3 years ago

  • Storage vMotion Activities Report

    Contributor opvizor

    A customer of us asked for a report to show Storage vMotion activities. The main reason for that was to optimize the settings for Storage DRS. Based on the report that roughly shows the amount of data ...
    VMware PowerCLI PowerShell
    Download

    447 Downloads

    0 Comments

    Updated 3 years ago

  • Using Import-VApp to upload OVA or OVF to VMware Cloud on AWS

    Contributor lamw

    This is a sample that uploads an OVA into VMware Cloud on AWS using the PowerCLI Import-VApp cmdlet.  Requirements: VPN established between your onPrem environment and the Management Compute Gateway ...
    VMware Cloud on AWS VMware PowerCLI PowerShell
    Download

    309 Downloads

    1 Comment

    Updated 6 months ago

  • Automating new Cloud Motion with vSphere Replication using HCX API

    Contributor lamw

    PowerShell Module for Hybrid Cloud Extension (HCX) API which enables a number of operations including automating the new Cloud Motion with vSphere Replication migration type using HCX API Please see h ...
    VMware Cloud on AWS VMware PowerCLI PowerShell
    Download

    482 Downloads

    0 Comments

    Updated 1 month ago

;