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
- Get-VCSACerts.ps1... <# .NOTES Author: Mark McGill, VMware Last Edit: 5-4-2021 Version 1.3 .SYNOPSIS Returns vCenter certificate information for all VCSA certificates, and optio ...vSphere PowerShell
- Relocate Virtual MachineThis vRO will relocates virtual machine and it's disks to another host or datastore while the virtual machine is powered on.vRealize Orchestrator Plug-in SDK vRO Workflow
- Get Guest VM OperationReady State and VMware Tools RunningGet Guest VM state is in Operation Ready and the VMware Tools is in running state This is used before running any Guest Operations Tasks.vSphere vRealize Orchestrator Plug-in SDK JavaScript
- Powerful placeVM API which uses DRS to get recommendations to place the VMs and its virtual disks... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/DRS //:: # Reference: //:: # Description: Tutorial: PlaceVM API: Live relocate a VM from ...vSphere Management SDK Java
- Report on VMs with multi-writer flag enabledWhat this script does: This script connects to the vCenter Server and prepares a report on All VMs with at-least one disk enabled with "Multi-Writer" sharing. Author: Vikas Shitole www.vThinkBeyond ...VMware PowerCLI vSphere Management SDK PowerShell
- Getting Cluster usage data on CPU Memory and Storage resourcesWhat this script does: Report on Cluster usage/capacity data on CPU, Memory and Storage resources across all the cluster in a vCenter server. Author: Vikas Shitole www.vThinkBeyondVM.comvSphere Management SDK VMware PowerCLI PowerShell
- DRS Rules For all VMs In ClusterWhat this script does: Report on DRS cluster VMs and its assciated VM-VM affinity/anti affinity rules. Author: Vikas Shitole www.vThinkBeyondVM.comvSphere Management SDK VMware PowerCLI PowerShell
- Create NFS Datastore using vSphere API... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/NFS //:: # Description: Creating/Mounting NFS datastore using vSphere API. //::# How to ...vSphere Management SDK Java
- Add NFS Datastore in ESXi... //:: # Description: Creating/Mounting NFS datastore in ESXi(no connection to vCenter server) using vSphere API. //::# How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-j ...vSphere Management SDK Java
- Reconfigure ESXi host for HAScript in python, using pyVmomi library, that performs a Reconfigure for HA operation on an ESXi host that is part of vSphere HA cluster. Provide the vCenter host, user, password and ESXi host as argu ...vSphere Management SDK Python