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 on an HPE OneView appliance. Profiles can be built from scratch or derived from a server profile template, and optionally assigned to a specific server at creation time.Syntax
From a server profile template (SPT)
From scratch (Default / SAN storage)
Import from JSON file
Description
New-OVServerProfile creates a server profile resource in HPE OneView. A profile defines the complete hardware configuration — networking connections, firmware policy, boot settings, local storage, SAN storage, and BIOS settings — for a server.
When -ServerProfileTemplate is provided, the new profile inherits all settings defined in the template. Individual parameters can supplement template values (for example, -Server to assign the profile to specific hardware).
Use -AssignmentType to control how the profile is assigned:
| Value | Description |
|---|---|
Server | (default) Assign to a specific server hardware resource provided via -Server. |
Bay | Assign to a specific enclosure bay via -Enclosure and -EnclosureBay. |
Unassigned | Create the profile without assigning it to any hardware. |
-Async to return immediately with a task object instead of waiting for the operation to complete.
Parameters
Name for the new server profile.
Controls how the profile is assigned to hardware. Valid values:
Server, Bay, Unassigned. Alias: assign.Server hardware object (from
Get-OVServer) to assign the profile to when AssignmentType is Server. Accepts pipeline input.Enclosure object to target when
AssignmentType is Bay.Enclosure bay number (1–16) to target when
AssignmentType is Bay. Alias: bay.Server profile template object (from
Get-OVServerProfileTemplate) to derive the new profile from. Required in the SPT parameter set.Optional text description for the server profile.
Array of connection objects created by
New-OVServerProfileConnection. Defines the network connections for the profile.When creating from a template with FC connections, provides a mapping of connection IDs to WWN addresses. Only valid with the
SPT parameter set.Enclosure group object (from
Get-OVEnclosureGroup). Required when specifying ServerHardwareType for blade servers. Alias: eg.Server hardware type object (from
Get-OVServerHardwareType) that defines the hardware model compatibility. Alias: sht.Enable firmware management for the profile.
Firmware baseline object (from
Get-OVBaseline) to apply to the server.Specific patch level version to target within the selected firmware baseline.
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.Scheduled date and time for firmware activation when
FirmwareActivationMode is Scheduled.Force reinstallation of firmware even if the server is already at the target version. Alias:
ForceInstallFirmware.Enable BIOS settings management for the profile.
Array of BIOS setting objects to apply. Use alongside
-Bios.Server boot mode. Valid values:
UEFI, UEFIOptimized, BIOS, Unmanaged.PXE boot IP version policy when boot mode is
UEFI or UEFIOptimized. Valid values: Auto, IPv4, IPv6, IPv4ThenIPv6, IPv6ThenIPv4.Enable boot order management. Alias:
boot.Ordered array of boot device types, for example
@('PXE', 'HardDisk'). Requires -ManageBoot.Secure Boot state. Valid values:
Unmanaged, Enabled, Disabled.Enable local storage management for the profile.
Storage controller object created by
New-OVServerProfileLogicalDiskController. Alias: LogicalDisk.Whether to manage iLO settings through the profile.
iLO settings object to apply when
ManageIloSettings is $true.Enable SAN storage attachment. Requires
-HostOStype and -StorageVolume.Host operating system type for SAN storage. Required with
-SANStorage. Alias: OS. Valid values include VMware, Win2k19, RHEL, SUSE, and others.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 setting 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.User-defined serial number. Requires
SnAssignment set to UserDefined.User-defined UUID for the server profile.
Hide unused FlexNIC ports from the operating system. Defaults to
$true.One or more scope objects to assign to the newly created profile.
Return a task object immediately without waiting for the operation to complete.
Return the profile object without sending it to the appliance. Useful for inspecting or further modifying the profile before creation.
Import a profile from a previously exported JSON file.
Path to a JSON file or a deserialized profile object when using
-Import. Aliases: location, file.Specifies the HPE OneView appliance connection to use. Defaults to the default connected session. Alias:
Appliance.Examples
Create a profile from a template and assign to available server
This example mirrors the pattern used in the Synergy sample script.Create a profile from scratch with network connections
Create an unassigned profile for later deployment (rack server)
Output
HPEOneView.Appliance.TaskResource — An async task object tracking the profile creation. When -Passthru is specified, returns an HPEOneView.ServerProfile object without sending to the appliance.
Related cmdlets
- Get-OVServerProfile
- Set-OVServerProfile
- Remove-OVServerProfile
- Copy-OVServerProfile
- Get-OVServerProfileTemplate
- New-OVServerProfileConnection — see source repository for cmdlet usage
- New-OVServerProfileLogicalDisk — see source repository for cmdlet usage
- New-OVServerProfileLogicalDiskController — see source repository for cmdlet usage