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
Designate a specificHPEOneView.Appliance.Connection as the default connection used by all cmdlets that rely on $ConnectedSessions.
Syntax
Description
When multiple HPE OneView appliances are connected simultaneously, cmdlets that do not receive an explicit-ApplianceConnection argument operate against the default connection. Set-OVApplianceDefaultConnection lets you switch which connection holds that default status.
The cmdlet:
- Locates the connection matching the supplied value in
$Global:ConnectedSessions. - Clears the default flag on whichever connection currently holds it.
- Sets the default flag on the targeted connection.
$ConnectedSessions, the cmdlet issues a warning and ensures that single connection is marked as default rather than performing a switch.
Accepts either an HPEOneView.Appliance.Connection object (e.g. from $ConnectedSessions) or a name string. Pipeline input is supported.
The cmdlet returns the updated $Global:ConnectedSessions collection.
Parameters
The connection to promote to the default. Accepts an
HPEOneView.Appliance.Connection object or a connection name string. Pipeline input is supported. Accepts the aliases Appliance and Connection.Return value
Returns the full$Global:ConnectedSessions collection with the updated default flag.