1
1
---
2
2
external help file :
3
- applicable : SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
3
+ applicable : SharePoint Server 2013, SharePoint Server 2016
4
4
title : Add-DatabaseToAvailabilityGroup
5
5
schema : 2.0.0
6
6
---
7
7
8
8
# Add-DatabaseToAvailabilityGroup
9
9
10
10
## SYNOPSIS
11
- Adds an availability group
11
+ Adds one or more SharePoint databases to a SQL Server Availability Group
12
12
13
13
## SYNTAX
14
14
@@ -34,7 +34,14 @@ Use the Add-DatabaseToAvailabilityGroup cmdlet to add an availability group to t
34
34
Add-DatabaseToAvailabilityGroup -AGName MyAvailabilityGroup -DatabaseName WSS_Content -FileShare \\backup\share\
35
35
```
36
36
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"
38
45
39
46
## PARAMETERS
40
47
@@ -45,7 +52,7 @@ The name of the availability group from which the databases are being added.
45
52
Type : String
46
53
Parameter Sets : (All)
47
54
Aliases :
48
- Applicable : SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
55
+ Applicable : SharePoint Server 2013, SharePoint Server 2016
49
56
50
57
Required : True
51
58
Position : 0
@@ -63,7 +70,7 @@ Manages objects for the purpose of proper disposal. Use of objects, such as SPWe
63
70
Type : SPAssignmentCollection
64
71
Parameter Sets : (All)
65
72
Aliases :
66
- Applicable : SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
73
+ Applicable : SharePoint Server 2013, SharePoint Server 2016
67
74
68
75
Required : False
69
76
Position : Named
@@ -80,7 +87,7 @@ The name of the database to be added to the availability group.
80
87
Type : String
81
88
Parameter Sets : Default
82
89
Aliases :
83
- Applicable : SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
90
+ Applicable : SharePoint Server 2013, SharePoint Server 2016
84
91
85
92
Required : True
86
93
Position : Named
@@ -96,7 +103,7 @@ When a database is being added to the availability group, backup / restores are
96
103
Type : String
97
104
Parameter Sets : (All)
98
105
Aliases :
99
- Applicable : SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
106
+ Applicable : SharePoint Server 2013, SharePoint Server 2016
100
107
101
108
Required : False
102
109
Position : Named
@@ -112,7 +119,7 @@ Adds all databases from the current SharePoint farm into the availability group.
112
119
Type : SwitchParameter
113
120
Parameter Sets : AllDatabases
114
121
Aliases :
115
- Applicable : SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016
122
+ Applicable : SharePoint Server 2013, SharePoint Server 2016
116
123
117
124
Required : True
118
125
Position : Named
0 commit comments