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 23 Results Sample vcenter
  • Reboot VM and Wait for VMWare Tools

    Contributor Jim Sadlek

    Changed a couple issues found with this original solution: https://code.vmware.com/samples/1143/reboot-guest-os-on-vsphere-vm-and-wait-#code First, the enum constant is no longer valid in vRO 8.x.  Se ...
    vRealize Orchestrator vRO Workflow
    Download

    106 Downloads

    0 Comments

    Updated 1 year ago

  • Powercli script for disabling SLP Service on 6.7 and 6.5 vCenter Servers as per VMware KB76372

    Contributor Sivakumar E. S

    This script works at VC level, where it will iterate through all the Datacenters and clusters in the VC and disable SLP service on all the available hosts. Script will ensure Firewall Exception RuleSe ...
    VMware PowerCLI PowerShell
    Download

    0 Comments

    Updated 3 months ago

  • Search vSphere Entities by Name

    Contributor Surabhi Tandon

    vRO actions to search entities in vCenter by name.  The code uses Property Collector that allows faster retrieval times even in large environments.  Valid for all versions of vCenter.  Possible use ca ...
    vRealize Orchestrator Plug-in SDK vRealize Orchestrator JavaScript
    Download

    383 Downloads

    0 Comments

    Updated 3 years ago

  • vCenter Roles

    Contributor Rob Nelson

    vCenter-roles Import pre-defined roles for common applications to access vCenter. The privileges for each role are stored in a JSON-format file as a list of privilege Ids (Get-VIPrivilege | Select Id) ...
    vSphere Management SDK PowerShell
    Download

    556 Downloads

    0 Comments

    Updated 3 months ago

  • Audit Latency Sensitivity Configuration on all the VMs in vCenter Inventory

    Contributor VIKAS SHITOLE

    ... //:: # Product/Feature: vCenter Server/Latency Sensitivity of the VM(Exclusive pCPU-vCPU affinity) //:: # Description: Script to audit Latency sensitivity feature configuration on all the VMs in a ...
    vSphere Management SDK Java
    Download

    511 Downloads

    0 Comments

    Updated 6 years ago

  • Configure Latency Sensitivity feature on the VMs

    Contributor VIKAS SHITOLE

    ... //:: # Product/Feature: vCenter Server/Latency Sensitivity of the VM(Exclusive pCPU-vCPU affinity) //:: # Description: Script to configure latency sensitivity feature on the VM and getting list of ...
    vSphere Management SDK Java
    Download

    543 Downloads

    0 Comments

    Updated 6 years ago

  • Deploy virtual machines of ova by ovftool

    Contributor Daniel Ni

    The utility of codes to present the deployment of vm by ovftool. There are 3 parameters to specify: Source: the ova file to deploy Destination: the localtion on vCenter where to deploy. it is refered ...
    Open Virtualization Format Tool (ovf) Java
    Download

    3094 Downloads

    1 Favorite

    1 Comment

    Updated 5 years ago

  • vRO vCenter 6 Tagging plug-in

    Contributor Christophe Decanini

    Overview This is a plug-in to handle vCenter tags. It works with leveraging vCenter 6 vAPI. vCenter 6 is the first vCenter version providing a public API for tagging.  See the video to see what it can ...
    vRealize Orchestrator Plug-in SDK vRO Package
    Download

    1031 Downloads

    1 Favorite

    0 Comments

    Updated 5 years ago

  • Assign a vCenter tag to a VM via VAPI

    Contributor Trisha Navarro

    Assign a vCenter tag to a VM via VAPI
    vRealize Orchestrator Plug-in SDK JavaScript
    Download

    594 Downloads

    0 Comments

    Updated 5 years ago

  • Get all compatible Datastores for a vCenter Host and VM

    Contributor Trisha Navarro

    Get all compatible datastores for a given host, resource pool, and virtual machine. The datstore must have enough free storage space necessary for the VM, and must be accessible and not in an overall ...
    vRealize Orchestrator Plug-in SDK JavaScript
    Download

    2600 Downloads

    0 Comments

    Updated 4 years ago