Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 

Intelligent Automation For Cloud - Create vCenter Resource Pool

This document explains the logic to develop Tidal Enterprise Orchestrator workflow to automate the process of creating vCenter Resource Pool

* vSphere Power CLI must be installed either on the TEO server or vCenter

* vMA can also be used to achieve the same task

* Script execution must be enabled on the vCenter

* DRS must be enabled on the vCenter in order to create the Resource Pool

This workflow was build using TEO native Powershell activity. The vCLI snapin was used to execute the Power vCLI commands on the remote vCenter.

The powershell script is very simple

Add-PSSnapin VMware.VimAutomation.Core

Connect-VIServer -Server localhost -Protocol http

get-cluster

New-ResourcePool -Location $args[0] -Name $args[1]

exit

ScreenHunter_001.jpg

ScreenHunter_002.jpg

ScreenHunter_004.jpg

After creating the vCenter Resource Pool, the workflow also sets the CPU and Memory reservation values if provided as input. Otherwise, it takes the default values and create RP.

ScreenHunter_006.jpg

ScreenHunter_007.jpg

ScreenHunter_008.jpg

Add-PSSnapin VMware.VimAutomation.Core

Connect-VIServer -Server localhost -Protocol http

get-cluster

Set-ResourcePool  -ResourcePool $args[0] -MemReservationMB $args[1]

Set-ResourcePool  -ResourcePool $args[0] -CpuReservationMhz $args[2]

exit

Version history
Revision #:
1 of 1
Last update:
‎11-03-2011 10:08 AM
Updated by:
 
Labels (1)
Attachments