New-VMSan

New-VMSan

Creates a new virtual storage area network (SAN) on a Hyper-V host.

Syntax

Parameter Set: HbaObject
New-VMSan [-Name] <String> [-ComputerName <String> ] [-HostBusAdapter <CimInstance[]> ] [-Note <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: StringWwn
New-VMSan [-Name] <String> -WorldWideNodeName <String[]> -WorldWidePortName <String[]> [-ComputerName <String> ] [-Note <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The New-VMSan cmdlet creates a new virtual storage area network (SAN) on a Hyper-V host.

Parameters

-ComputerName<String>

Specifies the friendly name of a Hyper-V host on which the new virtual storage area network (SAN) is to be created. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer — use “localhost” or a dot (“.”) to specify the local computer explicitly.

Aliases

none

Required?

false

Position?

named

Default Value

.

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-HostBusAdapter<CimInstance[]>

Specifies the host bus adapter (HBA) to be associated with the virtual storage area network (SAN) to be created. This can be retrieved by running the Get-InitiatorPort cmdlet.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String>

Specifies the friendly name of the virtual storage area network (SAN) to be created.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Note<String>

Specifies a note to be associated with the virtual storage area network (SAN) to be created.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WorldWideNodeName<String[]>

Specifies the world wide node name (WWNN) of the host bus adapters to be associated with the virtual storage area network (SAN) to be created.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WorldWidePortName<String[]>

Specifies the world wide port name (WWPN) of the host bus adapters to be associated with the virtual storage area network (SAN) to be created.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1

Creates a new virtual storage area network (SAN) with the specified Name, Note, WorldWideNodeName, and WorldWidePortName.

PS C:\> New-VMSan –Name Production –Note “Production SAN” –WorldWideNodeName C003FF0000FFFF00 –WorldWidePortName C003FF5778E50002