cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1007
Views
10
Helpful
0
Comments
Syed Shahzad Ali
Beginner
Beginner

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers
Quick Links