Get-MgmtSvcSqlServerGroup

Gets a SQL Server group.

Syntax

Get-MgmtSvcSqlServerGroup [-AdminUri] <Uri> [-Token] <String> [[-GroupName] <String[]>]
 [-DisableCertificateValidation] [<CommonParameters>]

Description

The Get-MgmtSvcSqlServerGroup cmdlet gets SQL Server groups.
By default, all SQL Server groups are returned.
To get a specific server group, use the GroupName parameter.

Examples

Example 1: Get a specific SQL server group

PS C:\> Get-MgmtSvcSqlServerGroup -AdminUri "https://Computer01:30004" -Token $Token -GroupName "SQL Group 01"
NOTE: This example assumes that you have created a token by using **Get-MgmtSvcToken** and have stored it in a variable named $Token. This command gets the SQL Server group named SQL Group 01.

Parameters

-AdminUri

Specifies the URI of the Windows Azure Pack administrator API.
Use the following format: https://<computer>:<port>, where <computer> is the computer on which the administrator API is installed.

Type:Uri
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-DisableCertificateValidation

Disables certificate validation for the Windows Azure Pack installation.
If you specify this parameter, you can use self-signed certificates.

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

-GroupName

Specifies an array of SQL Server group names.

Type:String[]
Required:False
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-Token

Specifies an identity token.
To create a token, use the Get-MgmtSvcToken cmdlet.

Type:String
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Inputs

None

Outputs

SqlServerGroup

This cmdlet emits a **SqlServerGroup** object.