Commands › Exchange Online

Get-DatabaseAvailabilityGroup

Exchange Online ExchangeOnlineManagement Get-*

Obtain a variety of configuration settings, status and other information about a database availability group (DAG).

Quick start script

# Get-DatabaseAvailabilityGroup — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-DatabaseAvailabilityGroup | Format-List

# 3. Export for evidence / drift tracking
Get-DatabaseAvailabilityGroup | Export-Clixml .\DatabaseAvailabilityGroup-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-DatabaseAvailabilityGroup [[-Identity] <DatabaseAvailabilityGroupIdParameter>]
 [-DomainController <Fqdn>]
 [-Status]
 [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-Identity DatabaseAvailabilityGroupIdParameter The Identity parameter specifies the name of the DAG to query.
-DomainController Fqdn The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...
-Status SwitchParameter The Status parameter instructs the command to query Active Directory for additional information and to include real-time status information in the output. You don't need to specify a value with this switch.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.