Share via


Get-SCStorageArray

Gets a storage array object.

Syntax

Get-SCStorageArray
   [-VMMServer <ServerConnection>]
   [[-Name] <String>]
   [-All]
   [<CommonParameters>]
Get-SCStorageArray
   -VMHost <Host[]>
   [-ConnectedToAllHost]
   [-FibreChannelOnly]
   [-iSCSIOnly]
   [-SASOnly]
   [-VMMServer <ServerConnection>]
   [[-Name] <String>]
   [<CommonParameters>]
Get-SCStorageArray
   [-FibreChannelOnly]
   [-iSCSIOnly]
   [-SASOnly]
   [-VMMServer <ServerConnection>]
   [[-Name] <String>]
   -StorageFileServerNode <StorageFileServerNode[]>
   [<CommonParameters>]
Get-SCStorageArray
   -HyperConvergedHostCluster <HostCluster>
   [-VMMServer <ServerConnection>]
   [[-Name] <String>]
   [<CommonParameters>]
Get-SCStorageArray
   [-VMMServer <ServerConnection>]
   [[-Name] <String>]
   -VM <VM[]>
   [<CommonParameters>]
Get-SCStorageArray
   [-VMMServer <ServerConnection>]
   [[-Name] <String>]
   [-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.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ConnectedToAllHost

Indicates that a storage array is connected to all hosts.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-FibreChannelOnly

Indicates that only Fibre Channel arrays are returned.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-HyperConvergedHostCluster

Type:HostCluster
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ID

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

Type:Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-iSCSIOnly

Indicates that only iSCSI arrays are returned.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies the name of the storage array that this cmdlet gets.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SASOnly

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

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-StorageFileServerNode

Specifies an array of storage file server node objects.

Type:StorageFileServerNode[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-VM

Specifies an array of virtual machine objects.

Type:VM[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters: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.

Type:Host[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Outputs

StorageArray

This cmdlet returns a StorageArray object.