Compartilhar via


Get-SCAvailabilitySetName

Gets the names of availability sets associated with virtual machines or computer tier configurations.

Syntax

Default (Default)

Get-SCAvailabilitySetName
    [-VMMServer <ServerConnection>]
    [<CommonParameters>]

Description

The Get-SCAvailabilitySetName cmdlet gets the names of availability sets that are associated with virtual machines or computer tier configurations.

You can specify availability set names in a virtual machine configuration or a computer tier template.

Examples

Example 1: Get the names of all availability sets on a specified VMM management server

PS C:\> Get-SCAvailabilitySetName -VMMServer "VMMServer01"

This command gets all the names of availability sets on VMMServer01.

Parameters

-VMMServer

Specifies a Virtual Machine Manager (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

String

This cmdlet returns an array of String objects.