VMware vSphere Update Manager PowerCLI

Attach-Baseline

Synopsis

Attaches baselines to the specified inventory object.

Syntax

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

Related Commands

Detach-Baseline
Get-Baseline
New-PatchBaseline
Set-PatchBaseline
Remove-Baseline

Detailed Description

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 datacenter transitively attaches the baseline to all objects in the container.

Parameters

NameDescriptionRequired?Pipeline InputDefault Value
ServerSpecify 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
EntitySpecify Template, VirtualMachine, VMHost, Cluster, Datacenter, Folder, and vApp objects to which you want to attach the baselines.truetrue (ByValue)
BaselineSpecify the baselines you want to attach to the specified objects.truetrue (ByValue)
WhatIfIndicate that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse
ConfirmIndicate that the cmdlet asks for confirmation before running.falsefalse

Return Type

none

Notes

Examples

-------------- EXAMPLE 1 --------------

Attach-Baseline -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 | Attach-Baseline -Baseline $baseline

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

-------------- EXAMPLE 3 --------------

Get-Baseline -Name *2009 | Attach-Baseline -Entity $vm

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


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