Skip to content

Commit a3dad34

Browse files
authored
Merge pull request MicrosoftDocs#224 from tseward/patch-3
Update Add-DatabaseToAvailabilityGroup.md
2 parents 3325483 + c2f1bf2 commit a3dad34

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Add-DatabaseToAvailabilityGroup.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
external help file:
3-
applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
3+
applicable: SharePoint Server 2013, SharePoint Server 2016
44
title: Add-DatabaseToAvailabilityGroup
55
schema: 2.0.0
66
---
77

88
# Add-DatabaseToAvailabilityGroup
99

1010
## SYNOPSIS
11-
Adds an availability group
11+
Adds one or more SharePoint databases to a SQL Server Availability Group
1212

1313
## SYNTAX
1414

@@ -34,7 +34,14 @@ Use the Add-DatabaseToAvailabilityGroup cmdlet to add an availability group to t
3434
Add-DatabaseToAvailabilityGroup -AGName MyAvailabilityGroup -DatabaseName WSS_Content -FileShare \\backup\share\
3535
```
3636

37-
This example adds an availability group named "MyAvailabilityGroup" to the WSS_Content Database
37+
This example adds the database WSS_Content to the availability group named "MyAvailabilityGroup".
38+
39+
### Example 2
40+
```
41+
Add-DatabaseToAvailabilityGroup -AGName MyAvailabilityGroup -ProcessAllDatabases -FileShare \\backup\share\
42+
```
43+
44+
This example adds all SharePoint databases attached to the farm to the availability group named "MyAvailabilityGroup"
3845

3946
## PARAMETERS
4047

@@ -45,7 +52,7 @@ The name of the availability group from which the databases are being added.
4552
Type: String
4653
Parameter Sets: (All)
4754
Aliases:
48-
Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
55+
Applicable: SharePoint Server 2013, SharePoint Server 2016
4956

5057
Required: True
5158
Position: 0
@@ -63,7 +70,7 @@ Manages objects for the purpose of proper disposal. Use of objects, such as SPWe
6370
Type: SPAssignmentCollection
6471
Parameter Sets: (All)
6572
Aliases:
66-
Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
73+
Applicable: SharePoint Server 2013, SharePoint Server 2016
6774

6875
Required: False
6976
Position: Named
@@ -80,7 +87,7 @@ The name of the database to be added to the availability group.
8087
Type: String
8188
Parameter Sets: Default
8289
Aliases:
83-
Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
90+
Applicable: SharePoint Server 2013, SharePoint Server 2016
8491

8592
Required: True
8693
Position: Named
@@ -96,7 +103,7 @@ When a database is being added to the availability group, backup / restores are
96103
Type: String
97104
Parameter Sets: (All)
98105
Aliases:
99-
Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
106+
Applicable: SharePoint Server 2013, SharePoint Server 2016
100107

101108
Required: False
102109
Position: Named
@@ -112,7 +119,7 @@ Adds all databases from the current SharePoint farm into the availability group.
112119
Type: SwitchParameter
113120
Parameter Sets: AllDatabases
114121
Aliases:
115-
Applicable: SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
122+
Applicable: SharePoint Server 2013, SharePoint Server 2016
116123

117124
Required: True
118125
Position: Named

0 commit comments

Comments
 (0)