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
Type
SDK / Platform / Tool
Contributor
Language
- Unprotect-InstantClone.ps1... <# .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
- vCenter VM PlacementvCenter 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
- vCenter VM List VMsvCenter 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
- vCenter VM Create Exhaustive VMvCenter 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
- vCenter VM Create Basic VMvCenter 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
- vCenter VM Create Default VMvCenter 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
- vCenter VM Hardware SerialvCenter 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
- vCenter VM Hardware Boot DevicevCenter 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
- vCenter VM Hardware BootvCenter 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
- vCenter VM Hardware DiskvCenter 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