## 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

Name | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | ---
Server | Specifies 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. | false | false |
Entity | Specifies Template, VirtualMachine, VMHost, Cluster, Datacenter, Folder, and vApp objects to which you want to attach the baselines. | true | true (ByValue) |
Baseline | Specifies the baselines you want to attach to the specified objects. | true | true (ByValue) |
WhatIf | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false |
Confirm | Indicates that the cmdlet asks for confirmation before running. | false | false |

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.