Join-OVServerProfileToTemplate
Syntax
Join-OVServerProfileToTemplate
[-Template] <Object>
[-ServerProfile] <Object>
[-ApplianceConnection] <Object>
[<CommonParameters>]
Description
Binds a server profile resource to the provided server profile template
Examples
Example 1
Join-OVServerProfileToTemplate -template "MyTemplate" -profile "MyProfile" -appliance HPEOneView.contoso.com
Attaches the server profile template named MyTemplate to the server profile name MyProfile on the OneView appliance [HPEOneView.contoso.com]
Example 2
$p = Get-OVServerProfile -Name "myProfile"
Get-OVServerProfileTemplate "myTemplate" | Join-OVServerProfileToTemplate -profile $p -appliance HPEOneView.contoso.com
Attaches the server profile template named MyTemplate to the server profile name MyProfile on the OneView appliance [HPEOneView.contoso.com]
Parameters
-Template <Object>
A server profile template name, URI, or resource object
| Aliases | t |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | true (ByValue) |
| Accept wildcard characters? | False |
-ServerProfile <Object>
A server profile name, URI, or resource object
| Aliases | p, Profile |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-ApplianceConnection <Object>
Specify one [HPEOneView.Appliance.Connection] object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.
| Aliases | Appliance |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | $Global:ConnectedSessions |
| Accept pipeline input? | true (ByPropertyName) |
| Accept wildcard characters? | False |
-WhatIf <SwitchParameter>
| Aliases | |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | |
| Accept pipeline input? | |
| Accept wildcard characters? | False |
-Confirm <SwitchParameter>
| Aliases | |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | |
| Accept pipeline input? | |
| 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
A PSCustom object representing a server profile template resource retrieved from the HPE OneView appliance
Return Values
Collection of task resource objects
An HPE OneView task resource object