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

    137 Downloads

    0 Comments

    Updated 1 year ago

  • Get vCenter server HA health information using vSphere Python SDK i.e. pyVmomi

    Contributor VIKAS SHITOLE

    ...   # Product: vCenter server/vCenter Server High Availability (VCHA)   # Description: Python script to Get vCenter server HA health information   # Reference: http://vthinkbeyondvm.com/how-to-m ...
    vSphere Management SDK Python
    Download

    716 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

    1528 Downloads

    0 Comments

    Updated 3 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

    1130 Downloads

    0 Comments

    Updated 3 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

    2651 Downloads

    0 Comments

    Updated 3 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

    1427 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

    1195 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

    976 Downloads

    0 Comments

    Updated 4 years ago

  • vCenter VM Hardware CPU

    Contributor VMware Inc

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

    945 Downloads

    0 Comments

    Updated 3 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

    1057 Downloads

    0 Comments

    Updated 4 years ago