Skip to content

ConvertTo-OVServerProfileTemplate

Syntax

ConvertTo-OVServerProfileTemplate
    [-InputObject] <Object>
    [-Name <String>]
    [-Description <String>]
    [-ApplianceConnection <Object>]
    [-Async]
    [<CommonParameters>]

Description

This Cmdlet will allow the user to "clone" or create a Server Profile Template from an existing Server Profile object. Not all Server Profile features will be converted to a Server Profile Template. For instance, the following features are not supported with a Server Profile Template:

  • Import existing local Smart Array Logical Disk configuration
  • Attach SAN Storage Volumes must be assigned a unique LUN ID

If the source Server Profile has the "Import existing logical drives" enabled, this setting will be disabled, and the Local Disk Configuration policy will be set to "disabled".

If any SAN Storage Volume attachments contain an "Auto" LUN value, it will be set to "Manual", with the LUN ID set to a unique value based on the Array Index value.

Info

Minimum required privileges: Infrastructure administrator or Server administrator.

Examples

Example 1

Get-OVServerProfile -Name MyProfile | ConvertTo-OVServerProfileTemplate -Name "Hypervisor Gold Template 1"

Use Get-OVServerProfile to retrieve the "MyProfile" object, creating a new Server Profile Template "Hyervisor Gold Template 1".

Parameters

-InputObject <Object>

A source Server Profile Object or Resource Name.

Aliases source, ServerProfile
Required? True
Position? Named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

-Name <String>

The Server Profile Template Name to assign. If omitted, then a new name of "Copy of - {Original_Name}" will be defined.

Aliases None
Required? False
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-Description <String>

The Server Profile description.

Aliases None
Required? False
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-Async <SwitchParameter>

Use this parameter to immediately return the async task. By default, the Cmdlet will wait for the task to complete.

Aliases None
Required? False
Position? Named
Default value False
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? False
Position? Named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
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 Server Profile resource object from Get-OVServerProfile.

Multiple HPEOneView.ServerProfile [System.Management.Automation.PSCustomObject] objects.

Return Values

Asynchronous task of the Server Profile Template creation request.