Udostępnij za pośrednictwem


New-SCStorageZoneAlias

Creates a Fibre Channel zone alias.

Syntax

Default (Default)

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

Description

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

Examples

Example 1: Create a Fibre Channel zone alias

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 "" -AddZoneMembership $Members

The first command gets the storage fabric object named PROD, and then stores that 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 for the members stored in $Members.

Parameters

-AddZoneMembership

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

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Description

Specifies a description of the new zone alias.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-JobVariable

Specifies the name of a variable that you use to track and store job progress.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of the new Fibre Channel zone alias.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunAsynchronously

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StorageFabric

Specifies a storage Fibre Channel fabric object.

Parameter properties

Type:StorageFabric
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

StorageZoneAlias

This cmdlet returns a StorageZoneAlias object.