Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Creates a server profile template on an HPE OneView appliance. Templates define a reusable, version-controlled server configuration that can be applied to multiple server profiles.Syntax
Default
With SAN storage
Description
New-OVServerProfileTemplate creates a server profile template resource in HPE OneView. A template acts as a specification document: it defines the desired state for all aspects of server configuration, and profiles derived from it are automatically checked for compliance.
Each configurable category — connections, firmware, BIOS, boot order, local storage, SAN storage, and iLO settings — has a corresponding *ConsistencyChecking parameter that controls how tightly derived profiles are required to match the template:
| Value | Behaviour |
|---|---|
Exact | Profiles must match the template exactly in this category. |
Minimum | Profiles must have at least the resources defined in the template. |
None | No compliance checking for this category. |
New-OVServerProfile -ServerProfileTemplate to derive profiles from it.
Parameters
Name for the new server profile template.
Server hardware type object (from
Get-OVServerHardwareType) that defines the hardware model the template targets. Alias: sht.Optional description of the template itself.
Description that will be applied to server profiles created from this template.
Whether the template manages network connections. Set to
$false to allow profiles to define their own connections independently.Array of connection objects created by
New-OVServerProfileConnection.Consistency checking mode for connections. Valid values:
Exact, Minimum, None.Enclosure group object (from
Get-OVEnclosureGroup). Required for blade server templates. Alias: eg.Enable firmware management in the template.
Firmware baseline object (from
Get-OVBaseline) to apply.Specific patch level version within the baseline.
Consistency checking mode for firmware. Valid values:
Exact, None.Policy controlling when firmware is updated. Valid values:
LowerThanBaseline, NotEqualToBaseline.Firmware install mode. Valid values:
FirmwareOnly, FirmwareAndSoftware, FirmwareOffline, FirmwareAndOSDrivers, FirmwareOnlyOfflineMode. Alias: FirmwareMode.When firmware activation occurs. Valid values:
Immediate, Scheduled, NotScheduled.Force reinstallation of firmware even if the server is already at the target version.
Enable BIOS settings management.
Array of BIOS setting objects to apply.
Consistency checking mode for BIOS settings. Valid values:
Exact, None.Server boot mode. Valid values:
UEFI, UEFIOptimized, BIOS, Unmanaged.Consistency checking mode for boot mode. Valid values:
Exact, None.PXE boot IP version policy for UEFI boot modes. Valid values:
Auto, IPv4, IPv6, IPv4ThenIPv6, IPv6ThenIPv4.Whether to manage boot order. Alias:
boot.Ordered array of boot device types, for example
@('HardDisk', 'PXE').Consistency checking mode for boot order. Valid values:
Exact, None.Secure Boot state. Valid values:
Unmanaged, Enabled, Disabled.Enable local storage management.
Consistency checking mode for local storage. Valid values:
Exact, Minimum, None.Storage controller object created by
New-OVServerProfileLogicalDiskController. Alias: LogicalDisk.Whether to manage iLO settings through the template.
iLO settings object to apply.
Consistency checking mode for iLO settings. Valid values:
Exact, None.Enable SAN storage attachment in the template. Requires
-HostOStype and -StorageVolume.Consistency checking mode for SAN storage. Valid values:
Exact, Minimum, None.Host operating system type for SAN storage. Required with
-SANStorage. Alias: OS.Storage volume object (from
Get-OVStorageVolume) to attach. Required with -SANStorage.Disable even-numbered SAN paths. Alias:
Even.Disable odd-numbered SAN paths. Alias:
Odd.Server affinity for blade servers. Valid values:
Bay, BayAndServer.MAC address assignment method. Valid values:
Virtual, Physical, UserDefined.WWN assignment method. Valid values:
Virtual, Physical, UserDefined.Serial number assignment method. Valid values:
Virtual, Physical, UserDefined.iSCSI initiator name assignment method. Valid values:
Virtual, UserDefined.Hide unused FlexNIC ports from the operating system.
Return a task object immediately without waiting for the operation to complete.
Return the template object without sending it to the appliance. Useful for inspecting the object before creation.
Specifies the HPE OneView appliance connection. Defaults to the default connected session. Alias:
Appliance.Examples
Create a Synergy blade template with multi-connection networking and local storage
Based directly on theServer_Profile_Template_Multiconnection_Sample.ps1 sample.
Create a rack server template with local storage and firmware management
Based on theServer_Profile_Template_Rack_Server_Sample.ps1 sample.
Output
HPEOneView.Appliance.TaskResource — An async task object tracking the template creation. When -PassThru is specified, returns an HPEOneView.ServerProfileTemplate object without sending to the appliance.
Related cmdlets
- Get-OVServerProfileTemplate
- Set-OVServerProfileTemplate
- Remove-OVServerProfileTemplate
- New-OVServerProfile
- New-OVServerProfileConnection — see source repository for cmdlet usage
- New-OVServerProfileLogicalDisk — see source repository for cmdlet usage
- New-OVServerProfileLogicalDiskController — see source repository for cmdlet usage