Disable-EmcExchangeFailover

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

 

Syntax

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

 

Description

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

 

Parameters

-DatabaseAvailabilityGroup <DatabaseAvailabilityGroup>

Attributes: Required, Position: 1

Specifies the DAG on which to disable failover.

 

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

 

Example

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.