Enable-EmcExchangeFailover

Enables failover on an exchange database availability group (DAG) that has been provisioned using ESI.

 

Syntax

Enable-EmcExchangeFailover [-DatabaseAvailabilityGroup] <DatabaseAvailabilityGroup> [-Silent] [<CommonParameters>]

 

Description

This command can be used together with the Disable-EmcExchangeFailover and Update-EmcHAExtension cmdlets to prepare a database for failover operations. The Enable-EmcExchangeFailover example shows how to do this.

 

Parameters

-DatabaseAvailabilityGroup <DatabaseAvailabilityGroup>

Attributes: Required, Position: 2

Specifies the DAG to enable failover on.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

<CommonParameters>

This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.

 

Examples

-------------- Example 1 --------------

C:\PS>$dag = Get-EmcDatabaseAvailabilityGroup MyDAG

C:\PS>Disable-EmcExchangeFailover $dag

# Before invoking the next command the Administrator should create databases and database copies in the DAG

C:\PS>Update-EmcHAExtension $dag

C:\PS>Enable-EmcExchangeFailover $dag

This example disables failover on the MyDAG DAG, updates the database copy map, and then re-enables failover.