Skip to content

Join HPOVServerProfileToTemplate

Chris Lynch edited this page Jul 25, 2016 · 37 revisions

HPE OneView 2.00 Library

Join-HPOVServerProfileToTemplate

Attach an existing server profile to a server profile template

SYNTAX

Join-HPOVServerProfileToTemplate [-Template] <Object> [-ServerProfile] <Object> [-ApplianceConnection] <Object>[ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

Binds a server profile resource to the provided server profile template

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one HPOneView.Appliance.Connection object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases cf
Required? true
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? false
Accept wildcard characters?    False

-Confirm <SwitchParameter>

Aliases cf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-ServerProfile <Object>

Aliases [-Profile, -p] A server profile name, URI, or resource object

Aliases cf
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Template <Object>

A server profile template name, URI, or resource object

Aliases cf
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-WhatIf <SwitchParameter>

Aliases cf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

HPOneView.ServerProfile [System.Management.Automation.PSCustomObject] A PSCustom object representing a server profile template resource retrieved from the HPE OneView appliance

Return Values

HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject] An HPE OneView task resource object.

System.Collections.ArrayList <HPOneView.Appliance.TaskResource> Collection of task resource objects.

Examples

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

PS C:\> Join-HPOVServerProfileToTemplate -template "MyTemplate" -profile "MyProfile"

Attaches the server profile template named MyTemplate to the server profile name MyProfile on the OneView appliance hpOneView.contoso.com

 -------------------------- EXAMPLE 2 --------------------------

PS C:\> $p = Get-HPOVServerProfile "myProfile" PS C:\> Get-HPOVServerProfileTemplate "myTemplate" | Join-HPOVServerProfileToTemplate -profile $p

Attaches the server profile template named MyTemplate to the server profile name MyProfile on the OneView appliance hpOneView.contoso.com

Related Links

Wiki Table of Contents

Clone this wiki locally