Compartilhar via


Get-SCStorageArray

Gets a storage array object.

Syntax

All (Default)

Get-SCStorageArray
    [[-Name] <String>]
    [-VMMServer <ServerConnection>]
    [-All]
    [<CommonParameters>]

GetConnectableArray

Get-SCStorageArray
    [[-Name] <String>]
    -VMHost <Host[]>
    [-ConnectedToAllHost]
    [-FibreChannelOnly]
    [-iSCSIOnly]
    [-SASOnly]
    [-VMMServer <ServerConnection>]
    [<CommonParameters>]

GetStorageFileServerNodeArray

Get-SCStorageArray
    [[-Name] <String>]
    -StorageFileServerNode <StorageFileServerNode[]>
    [-FibreChannelOnly]
    [-iSCSIOnly]
    [-SASOnly]
    [-VMMServer <ServerConnection>]
    [<CommonParameters>]

GetAssociatedWithHyperConvergedHostCluster

Get-SCStorageArray
    [[-Name] <String>]
    -HyperConvergedHostCluster <HostCluster>
    [-VMMServer <ServerConnection>]
    [<CommonParameters>]

GetVmArray

Get-SCStorageArray
    [[-Name] <String>]
    -VM <VM[]>
    [-VMMServer <ServerConnection>]
    [<CommonParameters>]

ID

Get-SCStorageArray
    [[-Name] <String>]
    [-VMMServer <ServerConnection>]
    [-ID <Guid>]
    [<CommonParameters>]

Description

The Get-SCStorageArray cmdlet gets a storage array object from the Virtual Machine Manager (VMM) database.

You must install the storage provider on an available computer prior to discovering the storage resources.

For more information about configuring storage, see Configuring Storage in VMMhttp://go.microsoft.com/fwlink/?LinkID=212013 in the Microsoft TechNet library at http://go.microsoft.com/fwlink/?LinkID=212013.

Examples

Example 1: Get a storage array by its name

PS C:\> Get-SCStorageArray -Name "SANArray"

This command gets the storage array named SANArray.

Parameters

-All

Indicates that this cmdlet gets all subordinate objects independent of the parent object. For example, the command Get-SCVirtualDiskDrive -All gets all virtual disk drive objects regardless of the virtual machine object or template object that each virtual disk drive object is associated with.

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

-ConnectedToAllHost

Indicates that a storage array is connected to all hosts.

Parameter properties

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

Parameter sets

GetConnectableArray
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-FibreChannelOnly

Indicates that only Fibre Channel arrays are returned.

Parameter properties

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

Parameter sets

GetConnectableArray
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
GetStorageFileServerNodeArray
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-HyperConvergedHostCluster

The Get-SCStorageArray cmdlet gets a storage array object from the Virtual Machine Manager (VMM) database.

You must install the storage provider on an available computer prior to discovering the storage resources.

For more information about configuring storage, see Configuring Storage in VMMhttp://go.microsoft.com/fwlink/?LinkID=212013 in the Microsoft TechNet library at http://go.microsoft.com/fwlink/?LinkID=212013.

Parameter properties

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

Parameter sets

GetAssociatedWithHyperConvergedHostCluster
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ID

Specifies the unique ID identifier of the storage array that this cmdlet gets.

Parameter properties

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

Parameter sets

ID
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-iSCSIOnly

Indicates that only iSCSI arrays are returned.

Parameter properties

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

Parameter sets

GetConnectableArray
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
GetStorageFileServerNodeArray
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 storage array that this cmdlet gets.

Parameter properties

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

Parameter sets

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

-SASOnly

Indicates that only Shared Access Storage (SAS) storage arrays are returned.

Parameter properties

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

Parameter sets

GetConnectableArray
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
GetStorageFileServerNodeArray
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StorageFileServerNode

Specifies an array of storage file server node objects.

Parameter properties

Type:

StorageFileServerNode[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetStorageFileServerNodeArray
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VM

Specifies an array of virtual machine objects.

Parameter properties

Type:

VM[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetVmArray
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMHost

Specifies a virtual machine host object. VMM supports Hyper-V hosts, VMware ESX hosts, and Citrix XenServer hosts. For more information about each type of host, see the Add-SCVMHost cmdlet.

Parameter properties

Type:

Host[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetConnectableArray
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a VMM server object.

Parameter properties

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

Parameter sets

(All)
Position:Named
Mandatory:False
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

StorageArray

This cmdlet returns a StorageArray object.