SQL Monitor 13

Get-SqlMonitorAvailabilityGroup

Gets the details of all of the Availability Groups for the given Cluster.

Syntax

Get-SqlMonitorAvailabilityGroup [[-Cluster] <Cluster>] [[-Name] <string>] [<CommonParameters>]

Description

The Get-SqlMonitorAvailabilityGroup cmdlet gets details of Availability Groups from a SQL Monitor Server.

Without parameters, this cmdlet gets details of all Availability Groups. You can specify a particular Availability group by name or a specific cluster to limit the result to.

Parameters

-Cluster <Cluster>

The Cluster to limit results to. For more information, see https://documentation.red-gate.com/sm/api/powershell-cmdlet-reference/get-sqlmonitorcluster.

Aliases None
Required? false
Position? 1
Default Value None
Accept Pipeline Input True (ByValue)
Accept Wildcard Characters false

-Name <String>

The Availability Group name to match.

Aliases None
Required? false
Position? 2
Default Value None
Accept Pipeline Input False
Accept Wildcard Characters false

-ProgressAction <ActionPreference>

{{ Fill ProgressAction Description }}

Aliases None
Required? false
Position? named
Default Value None
Accept Pipeline Input False
Accept Wildcard Characters false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Return values

The output type is the type of the objects that the cmdlet emits.

Examples

-------------------------- EXAMPLE 1 --------------------------

Get-SqlMonitorAvailabilityGroup

-------------------------- EXAMPLE 2 --------------------------

Get-SqlMonitorAvailabilityGroup -Cluster $cluster

-------------------------- EXAMPLE 3 --------------------------

Get-SqlMonitorAvailabilityGroup -Name "ExampleAvailabilityGroup"

-------------------------- EXAMPLE 4 --------------------------

Get-SqlMonitorAvailabilityGroup -Cluster $cluster -Name "ExampleAvailabilityGroup"


Do you have any feedback on this documentation?

Let us know at sqlmonitorfeedback@red-gate.com


Didn't find what you were looking for?