New-SCStorageZoneAlias

New-SCStorageZoneAlias

Creates a Fibre Channel zone alias.

Syntax

Parameter Set: Default
New-SCStorageZoneAlias [-StorageFabric] <StorageFabric> -Name <String> [-AddZoneMembership <String[]> ] [-Description <String> ] [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [ <CommonParameters>]

Detailed Description

The New-SCStorageZoneAlias cmdlet creates a Fibre Channel zone alias.

Parameters

-AddZoneMembership<String[]>

Specifies an array of zone members for the cmdlet to add.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Description<String>

States a description for the specified object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JobVariable<String>

Specifies that job progress is tracked and stored in the variable named by this parameter.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of a VMM object.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PROTipID<Guid]>

Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-StorageFabric<StorageFabric>

Specifies a storage Fibre Channel fabric object.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

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.

  • StorageZoneAlias

Examples

Example Example 1: Create a fibre Fibre channel Channel zone alias.Fibre Channel

The first command gets the storage fabric object named PROD, and then stores the object in the $Fabric variable.

The second command creates an array named $Members. The third and fourth commands populate the $Members array.

The last command creates a zone alias named ZoneAlias01 with the members stored in $Members.

PS C:\> $Fabric = Get-SCStorageFabric -Name "PROD"
PS C:\> $Members = @()
PS C:\> $Members += "C003FF3B8A610000"
PS C:\> $Members += "D113EF3A8F411234"
PS C:\> New-SCStorageZoneAlias -StorageFabric $Fabric -Name "ZoneAlias01" -Description "Fibre_Channel_Zone_Alias" -AddZoneMembership $Members

Get-SCStorageZoneAlias

Remove-SCStorageZoneAlias

Set-SCStorageZoneAlias

Get-SCStorageFabric