VMware Cloud Community
LucD
Leadership
Leadership
Jump to solution

Get-Baseline with the -Inherit parameter causes VimException

When I execute

Get-Baseline -Entity <esxname> -Inherit

always seems to produce the following error

Get-Baseline : 21-06-2010 09:39:19    Get-Baseline    2CD3BA3C-0CDB-43CF-AE6B-24E33E4DB21E    Error occured while executing cmdlet: Get-Baseline. Check
 inner exception for more details.
At line:1 char:13
+ Get-Baseline <<<<  -Entity <esxname> -Inherit
    + CategoryInfo          : NotSpecified: (:) [Get-Baseline], VimException
    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VumAutomation.Commands.GetBaseline

The inner exception shows

Unable to cast object of type 'VMware.VimAutomation.Client20.VMHostImpl' to type 'VMware.VimAutomation.Types.Folder'.

The Get-PatchBaseline cmdlet shows the same behaviour.

____________

Blog: LucD notes

Twitter: lucd22


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

Hi Luc,

I've filed a bug for that issue yesterday. Currently you can obtain the inherited baselines by getting baselines from host's parent - cluster, dacenter, folder.

Vitali

View solution in original post

0 Kudos
1 Reply
admin
Immortal
Immortal
Jump to solution

Hi Luc,

I've filed a bug for that issue yesterday. Currently you can obtain the inherited baselines by getting baselines from host's parent - cluster, dacenter, folder.

Vitali

0 Kudos