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 32 Results Sample vCenter API
  • Unprotect-InstantClone.ps1

    Contributor Mark McGill

    ... <# .NOTES Author: Mark McGill, VMware Last Edit: 11-23-2020 Version 1.1 .SYNOPSIS Unprotect Instant Clone VMs in order to delete those that are abandoned by Horizon .DESCRIPTION Uses vCenter API t ...
    Horizon PowerShell
    Download

    224 Downloads

    0 Comments

    Updated 2 years ago

  • vCenter VM Placement

    Contributor VMware Inc

    vCenter VM Placement Cluster names are not guaranteed to be unique within a vCenter instance, so we qualify our search using the Datacenter. If Folders are used, the search must be qualified using Fo ...
    vSphere Automation SDK for Python Python
    Download

    1211 Downloads

    0 Comments

    Updated 4 years ago

  • vCenter VM List VMs

    Contributor VMware Inc

    vCenter VM List VMs Demonstrates getting list of VMs present in vCenter Sample Prerequisites: vCenter/ESX   This sample is a part of the VMware vSphere Automation SDK for Python To build and run this ...
    vSphere Automation SDK for Python Python
    Download

    2756 Downloads

    0 Comments

    Updated 4 years ago

  • vCenter VM Create Exhaustive VM

    Contributor VMware Inc

    vCenter VM Create Exhaustive VM Demonstrates how to create a exhaustive VM with the below configuration: 3 disks, 2 nics, 2 vcpu, 2 GB, memory, boot=BIOS, 1 cdrom, 1 serial port, 1 parallel port, 1 f ...
    vSphere Automation SDK for Python Python
    Download

    1597 Downloads

    0 Comments

    Updated 4 years ago

  • vCenter VM Create Basic VM

    Contributor VMware Inc

    vCenter VM Create Basic VM Demonstrates how to create a basic VM with following configuration: 2 disks, 1 nic Sample Prerequisites: - datacenter - vm folder - datastore - cluster - standard switch ne ...
    vSphere Automation SDK for Python Python
    Download

    2740 Downloads

    0 Comments

    Updated 4 years ago

  • vCenter VM Create Default VM

    Contributor VMware Inc

    vCenter VM Create Default VM Demonstrates how to create a VM with system provided defaults Sample Prerequisites: - datacenter - vm folder - datastore - cluster - standard switch network This sample ...
    vSphere Automation SDK for Python Python
    Download

    1469 Downloads

    0 Comments

    Updated 4 years ago

  • vCenter VM Hardware Serial

    Contributor VMware Inc

    vCenter VM Hardware Serial Demonstrates how to configure Serial ports for a VM. Sample Prerequisites: The sample needs an existing VM. This sample is a part of the VMware vSphere Automation SDK for ...
    vSphere Automation SDK for Python Python
    Download

    1006 Downloads

    0 Comments

    Updated 4 years ago

  • vCenter VM Hardware Boot Device

    Contributor VMware Inc

    vCenter VM Hardware Boot Device Demonstrates how to modify the boot devices used by a virtual machine, and in what order they are tried. Sample Prerequisites: The sample needs an existing VM with the ...
    vSphere Automation SDK for Python Python
    Download

    1162 Downloads

    0 Comments

    Updated 4 years ago

  • vCenter VM Hardware Boot

    Contributor VMware Inc

    vCenter VM Hardware Boot Demonstrates how to configure the settings used when booting a virtual machine. Sample Prerequisites: The sample needs an existing VM. This sample is a part of the VMware v ...
    vSphere Automation SDK for Python Python
    Download

    1284 Downloads

    0 Comments

    Updated 4 years ago

  • vCenter VM Hardware Disk

    Contributor VMware Inc

    vCenter VM Hardware Disk Demonstrates how to configure disk settings for a VM. Sample Prerequisites: The sample needs an existing VM. This sample is a part of the VMware vSphere Automation SDK for ...
    vSphere Automation SDK for Python Python
    Download

    1111 Downloads

    0 Comments

    Updated 4 years ago