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



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



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.



-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.



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



-------------- 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.