Skip to content

Instantly share code, notes, and snippets.

View dlinsley's full-sized avatar

Daniel Linsley dlinsley

  • Broadcom - Tanzu
  • SMF
View GitHub Profile
@dlinsley
dlinsley / addReplaceResourceElement.js
Created March 8, 2017 06:10
vRealize Orchestrator Sample - Add Replace ResourceElement
// Copyright 2017, VMware, Inc., All Rights Reserved
//
// VMware vRealize Orchestrator action sample
//
// Adds or replaces a ResourceElement in a ResourceElementCategory.
// Assumes conrent type is text/plain
// For vRO 7.0+
//
// Action Inputs:
// name - string Name of the ResourceElement
@dlinsley
dlinsley / VMware-vCenter-Server-Appliance-6.5.0.5200-4944578_OVF10.md
Created March 8, 2017 06:25
All of the configurable OVF Properties extracted from the OVF of VMware vCenter Server Appliance 6.5.0.5200 build 4944578

All of the configurable OVF Properties extracted from the OVF of:

VMware vCenter Server Appliance 6.5.0.5200 build 4944578

Property Type Label Default Value Description
guestinfo.cis.appliance.net.addr.family string Host Network IP Address Family Network IP address family (i.e., 'ipv4' or 'ipv6').
guestinfo.cis.appliance.net.mode string Host Network Mode Network mode (i.e., 'static', 'dhcp', or 'autoconf' (IPv6 only).
guestinfo.cis.appliance.net.addr string Host Network IP Address Network IP address. Only provide this when mode is 'static'. Can be IPv4 or IPv6 based on specified address family.
guestinfo.cis.appliance.net.prefix string Host Network Prefix Network prefix length. Only provide this when mode is 'static'. 0-32 for IPv4. 0-128 for IPv6.
@dlinsley
dlinsley / VMware-vRO-Appliance-7.2.0.19944-4629837_OVF10.md
Created March 8, 2017 06:34
All of the configurable OVF Properties extracted from the OVF of VMware vRealize Orchestrator Appliance 7.2.0.19944 Build 4629837

All of the configurable OVF Properties extracted from the OVF of:

VMware vRealize Orchestrator Appliance 7.2.0.19944 Build 4629837

Property Type Label Default Value Description
varoot-password string Initial root password This will be used as an initial password for the root user account. You can change the password later (by using the passwd command or from the appliance Web console).
va-ssh-enabled boolean Enable SSH service in the appliance False This will be used as an initial status of the SSH service in the appliance. You can change it later from the appliance Web console.
ceip_enabled boolean Customer Experience Improvement Program True Customer Experience Improvement Program provides us with information that helps us improve our products and services.
vami.hostname string Hostname The host name for this virtual machine. Provide the full host name if you use a static IP. Leave blank to try to reverse look up the IP address if you use DHCP.
@dlinsley
dlinsley / horizonViewAddVCenterAllOptions.ps1
Created March 11, 2017 06:07
Sample to add vCenter to Horizon View with all available options
<#
Author: Daniel Linsley, @danlinsley
Description: Sample to add vCenter to Horizon View with all available options
#>
Import-Module VMware.VimAutomation.HorizonView
Connect-HVServer -Server "view.corp.local" -User "administrator@vsphere.local" -Pass "yourPassword"
$vc_service = New-Object VMware.Hv.VirtualCenter
@dlinsley
dlinsley / getSelectedNetworksOfReservationOfVM.js
Created March 14, 2017 17:32
Get selected networks in a vRA Reservation for a given Virtual Machine
// VMware vRealize Orchestrator action sample
//
// Starting with a Virtual Machine: this sample determines the Reservation it is associated with
// Then it gets the names of the Networks selected in the Reservation.
//
// For vRO/vRA 7.0+
//
// Action Inputs:
// vcacVm - vCAC:VirtualMachine vCAC Virtual Machine
//
@dlinsley
dlinsley / getEntitlementsOfBusinessGroup.js
Last active March 20, 2019 15:39
Get Entitlements of BusinessGroup - vRealize Automation (vRA)
// VMware vRealize Orchestrator (vRO) action sample
//
// Returns all of the Catalog Entitlements associated with a BusinessGroup
//
// For vRO/vRA 7.0+
//
// Action Inputs:
// businessGroup - vCACCAFE:Subtenant
//
// Return type: Array/vCACCAFE:Entitlement
@dlinsley
dlinsley / getAllCatalogResourceActions.js
Created May 4, 2017 23:06
Get All CatalogResourceActions defined in vRA
// VMware vRealize Orchestrator (vRO) action sample
//
// Returns all Catalog Resource Actions.
// The result can be iterated and filtered to populate entitlements.
//
// For vRO/vRA 7.0+
//
// Action Inputs:
// vraHost - vCACCAFE:VCACHost
//
@dlinsley
dlinsley / getVcVirtualMachineFromVcacVirtualMachine.js
Last active September 25, 2018 15:57
Get vCenter VirtualMachine from vRA VirtualMachine
// VMware vRealize Orchestrator (vRO) action sample
//
// Returns the vCenter VM for a vCAC/vRA VM
//
// For vRO/vRA 7.0+
//
// Action Inputs:
// vCACVm - vCAC:VirtualMachine
//
// Return type: VC:VirtualMachine
@dlinsley
dlinsley / getSoftwareComponentPropertyDetails.js
Last active June 20, 2017 13:31
Get vRA Software Component Property Details
// VMware vRealize Orchestrator (vRO) action sample
//
// Get details about at Software Component Property
//
// For vRO/vRA 7.0+
//
// Action Inputs:
// host - vCACCAFE:VCACHost
// componentId - string
// propertyId - string
@dlinsley
dlinsley / getSoftwareComponentPropertyIds.js
Created June 20, 2017 00:39
Get Software Component Property IDs
// VMware vRealize Orchestrator (vRO) action sample
//
// Get IDs of Properties of a Software Component
//
// For vRO/vRA 7.0+
//
// Action Inputs:
// host - vCACCAFE:VCACHost
// componentId - string
//