O'Reilly logo

Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition by Mike Pfeiffer, Jonas Andersson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Database Availability Group

The initial setup and configuration of a Database Availability Group (DAG) is done using a single cmdlet named New-DatabaseAvailabilityGroup. In this recipe, we'll take a look at how you can automate the creation of a DAG using the Exchange Management Shell.

How to do it...

To create a DAG, use the New-DatabaseAvailabilityGroup cmdlet:

New-DatabaseAvailabilityGroup -Name DAG `
-WitnessServer CAS1 `
-WitnessDirectory C:\FSW `
-DatabaseAvailabilityGroupIPAddresses 192.168.1.55

The previous command creates a new Database Availability Group named DAG. The file share witness server is set to a Client Access server named CAS1, and the path for the directory is also specified, along with an IP address that will be ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required