-
Notifications
You must be signed in to change notification settings - Fork 52
Join HPOVServerProfileToTemplate
Attach an existing server profile to a server profile template
Join-HPOVServerProfileToTemplate [-Template] <Object> [-ServerProfile] <Object> [-ApplianceConnection] <Object> [<CommonParameters>]
Binds a server profile resource to the provided server profile template
-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 | Appliance |
Required? | true |
Position? | 2 |
Default value | $Global:ConnectedSessions |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | False |
-ServerProfile <Object>
Aliases [-Profile, -p] A server profile name, URI, or resource object
Aliases | p, Profile |
Required? | true |
Position? | 1 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Template <Object>
A server profile template name, URI, or resource object
Aliases | t |
Required? | true |
Position? | 0 |
Default value | |
Accept pipeline input? | true (ByValue) |
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)
HPOneView.ServerProfile [System.Management.Automation.PSCustomObject]
A PSCustom object representing a server profile template resource retrieved from the HPE OneView appliance
System.Collections.ArrayList<HPOneView.Appliance.TaskResource>
Collection of task resource objects
HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]
An HPE OneView task resource object
-------------------------- EXAMPLE 1 --------------------------Join-HPOVServerProfileToTemplate -template "MyTemplate" -profile "MyProfile" -appliance hpOneView.contoso.com
Attaches the server profile template named MyTemplate to the server profile name MyProfile on the OneView appliance hpOneView.contoso.com
-------------------------- EXAMPLE 2 --------------------------$p = Get-HPOVServerProfile "myProfile" Get-HPOVServerProfileTemplate "myTemplate" | Join-HPOVServerProfileToTemplate -profile $p -appliance hpOneView.contoso.com
Attaches the server profile template named MyTemplate to the server profile name MyProfile on the OneView appliance hpOneView.contoso.com
Attach an existing server profile to a server profile template
Join-HPOVServerProfileToTemplate [-Template] <Object> [-ServerProfile] <Object> [-ApplianceConnection] <Object> [<CommonParameters>]
Binds a server profile resource to the provided server profile template
-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 | Appliance |
Required? | true |
Position? | 2 |
Default value | $Global:ConnectedSessions |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | False |
-ServerProfile <Object>
Aliases [-Profile, -p] A server profile name, URI, or resource object
Aliases | p, Profile |
Required? | true |
Position? | 1 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Template <Object>
A server profile template name, URI, or resource object
Aliases | t |
Required? | true |
Position? | 0 |
Default value | |
Accept pipeline input? | true (ByValue) |
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)
HPOneView.ServerProfile [System.Management.Automation.PSCustomObject]
A PSCustom object representing a server profile template resource retrieved from the HPE OneView appliance
System.Collections.ArrayList<HPOneView.Appliance.TaskResource>
Collection of task resource objects
HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]
An HPE OneView task resource object
-------------------------- EXAMPLE 1 --------------------------Join-HPOVServerProfileToTemplate -template "MyTemplate" -profile "MyProfile" -appliance hpOneView.contoso.com
Attaches the server profile template named MyTemplate to the server profile name MyProfile on the OneView appliance hpOneView.contoso.com
-------------------------- EXAMPLE 2 --------------------------$p = Get-HPOVServerProfile "myProfile" Get-HPOVServerProfileTemplate "myTemplate" | Join-HPOVServerProfileToTemplate -profile $p -appliance hpOneView.contoso.com
Attaches the server profile template named MyTemplate to the server profile name MyProfile on the OneView appliance hpOneView.contoso.com