I'm trying to attach a baseline to a VM. This command works fine when I run it against my existing VirtualCenter 2.5 server:
attach-baseline -entity (get-vm vm_name) -baseline (get-baseline Windows_Critical)
When I run the same command against our testing vCenter 4 server, I get back this error:
Get-Baseline : Object reference not set to an instance of an object.
At line:1 char:77
+ attach-baseline -entity (get-vm PreProWINBASE64-559) -baseline (get-baseline <<<< Windows_Critical)
I've also tried it with get-baseline -Name Windows_Critical but that gets the same error.
Does anyone know why that may be happening? Do those functions work differently now? Also, I tried downloading the newest vSphere PowerCLI tool to my workstation to see if I needed to use the newest version of the CLI with vCenter 4, but that doesn't have any of the baseline functions in it at all.