Skip to content

Save-OVServerProfile

Syntax

Save-OVServerProfile
    [-InputObject] <Object>
    [-Async]
    [-ApplianceConnection <Array>]
    [<CommonParameters>]

Description

This Cmdlet allows administrators to save the modified Server Profile object within the current PowerShell session to the target appliance.

Examples

Example 1

$MyProfile = Get-OVServerProfile -Name "My Profile 1" -ErrorAction Stop
$MyProfile.name = "My Profile NewName 1"
Save-OVServerProfile -InputObject $MyProfile

Get a Server Profile, update its name, then save.

Parameters

-ApplianceConnection <Array>

Specify one or more [HPEOneView.Appliance.Connection] object(s) or Name property value(s).

Aliases Appliance
Required? False
Position? Named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
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

-InputObject <Object>

Server Profile object to be saved.

Aliases None
Required? True
Position? Named
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)

Input Types

A Server Profile resource object from Get-OVServerProfile that was modified and needs to be saved.

Return Values

Async task Resource object for monitoring the enclosure import process.