Hi All,
I am trying to run below Powercli command for patching ESX host. When i run Attach-Baseline from the below query i am getting error. Please let me know if i am missing anything.
Get-Baseline | Select Name
Name : ESXi 5.1 U2 Build 1900470
Name : VA Upgrade to Latest (Predefined)
Name : VMware Tools Upgrade to Match Host (Predefined)
Name : VM Hardware Upgrade to Match Host (Predefined)
Name : Critical Host Patches (Predefined)
Name : Non-Critical Host Patches (Predefined)
Name : ESXi 5.1 Nezumi Baseline
Name : ESX 4.1 updates
Name : New Baseline
Name : ESXi5.1 Build 2000251
Name : ESXi 5.1 U3 Build 2323236
Command Executed:
Attach-Baseline -Baseline ESXi 5.1 U2 Build 1900470 -Entity ${ESXHOST}
Error Message
Attach-Baseline : Cannot bind parameter 'Baseline'. Cannot convert the "ESXi" value of type "System.String" to type "VMware.VumAutomation.Types.Baseline".
At line:5 char:26
+ Attach-Baseline -Baseline <<<< ESXi 5.1 U2 Build 1900470 -Entity ${ESXHOST}
+ CategoryInfo : InvalidArgument: (:) [Attach-Baseline], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,VMware.VumAutomation.Commands.AttachBaseline
Any help is appreciated.
Thanks and Regards
Riyas Hussain A