PowerCLI Reference

Add-EntityBaseline

Synopsis

This cmdlet attaches baselines to the specified inventory object.

Syntax

Add-EntityBaseline [-Server <VIServer[]>] [-Entity] <InventoryItem[]> -Baseline <Baseline[]> [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Get-Baseline
New-PatchBaseline
Remove-Baseline
Remove-EntityBaseline
Set-PatchBaseline

Detailed Description

This cmdlet attaches baselines to the specified Template, VirtualMachine, VMHost, Cluster, Datacenter, Folder, and VApp objects.
Attaching a baseline to a container object such as a folder or data center transitively attaches the baseline to all objects in the container.

Parameters

NameDescriptionRequired?Pipeline InputDefault Value
ServerSpecifies the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers.falsefalse
EntitySpecifies Template, VirtualMachine, VMHost, Cluster, Datacenter, Folder, and vApp objects to which you want to attach the baselines.truetrue (ByValue)
BaselineSpecifies the baselines you want to attach to the specified objects.truetrue (ByValue)
WhatIfIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse
ConfirmIndicates that the cmdlet asks for confirmation before running.falsefalse

Return Type

None

Notes

Examples

-------------- Example 1 --------------

Add-EntityBaseline -Entity $vm -Baseline $baseline

Attaches the baselines in the $baseline variable to the virtual machines objects saved in the $vm variable.

-------------- Example 2 --------------

Get-VM -Name VM | Add-EntityBaseline -Baseline $baseline

Attaches the baselines saved in the $baseline variable to the virtual machine named VM.

-------------- Example 3 --------------

Get-Baseline -Name *2009 | Add-EntityBaseline -Entity $vm

Attaches the baselines with names that end with 2009 to the virtual machine objects saved in the $vm variable.


Copyright © 1998 - 2015 VMware, Inc. All rights reserved.