Add-EntityBaseline Command | Vmware PowerCLI Reference

Add-EntityBaseline

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.

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
required
Baseline Baseline[] named
  • pipeline
Specifies the baselines you want to attach to the specified objects.
required
Entity InventoryItem[] named
  • pipeline
Specifies Template, VirtualMachine, VMHost, Cluster, Datacenter, Folder, and vApp objects to which you want to attach the baselines.
optional Server VIServer[] named
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.

Output

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.

Related Commands

Entity

This cmdlet remediates an inventory object against the specified baselines.

EntityBaseline

This cmdlet attaches baselines to the specified inventory object.

This cmdlet detaches baselines from the specified inventory objects.

EntityDefaultKeyProvider

This cmdlet adds a key provider to entities as default key provider.

This cmdlet removes the default key provider from the specified entities.