@@ -16,16 +16,15 @@ Creates a replication group.
1616## SYNTAX
1717
1818```
19- New-SRGroup [[-ComputerName] <String>] [-Name] <String> [-VolumeName] <String[]> [-LogVolumeName] <String>
20- [[-LogSizeInBytes] <UInt64>] [[-Description] <String>] [-EnableConsistencyGroups] [-EnableEncryption ]
21- [-EnableCompression] [-Force] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob ]
22- [<CommonParameters>]
19+ New-SRGroup [[-ComputerName] <String>] [-Name] <String> [-VolumeName] <String[]> [-LogVolumeName]
20+ <String> [[-LogSizeInBytes] <UInt64>] [[-Description] <String>] [-EnableConsistencyGroups]
21+ [-EnableEncryption] [-EnableCompression] [-Force] [-CimSession <CimSession[]>]
22+ [-ThrottleLimit <Int32>] [-AsJob] [<CommonParameters>]
2323```
2424
2525## DESCRIPTION
26- The ** New-SRGroup** cmdlet creates a replication group.
27- A replication group contains one or more data volumes and an associated log volume.
28- A replication group is the container for replication.
26+ The ` New-SRGroup ` cmdlet creates a replication group. A replication group contains one or more
27+ data volumes and an associated log volume. A replication group is the container for replication.
2928
3029> [ !NOTE]
3130> The ** EnableCompression** parameter is currently in PREVIEW beginning with TODO: 2022-08
@@ -37,75 +36,40 @@ A replication group is the container for replication.
3736## EXAMPLES
3837
3938### Example 1: Create a replication group
40- ```
41- PS C:\>New-SRGroup -ComputerName "SR-SRV05" -Name "ReplicationGroup01" -VolumeName "D:" -LogVolumeName "E:"
42- AllowVolumeResize : False
43- AsyncRPO :
44- ComputerName : SR-SRV05
45- Description :
46- Id : 7b44e4bd-3fd8-411d-a6d1-1a6bb704520f
47- IsAutoFailover :
48- IsCluster : False
49- IsEncrypted : False
50- IsInPartnership : False
51- IsPrimary :
52- IsSuspended :
53- IsWriteConsistency : False
54- LastInSyncTime :
55- LogSizeInBytes : 8589934592
56- LogVolume : e:\
57- Name : ReplicationGroup01
58- NumOfReplicas : 1
59- Partitions : {bc49f059-4f78-464d-b88a-3a092108816e}
60- Replicas : {MSFT_WvrReplica (PartitionId =
61- "bc49f059-4f78-464d-b88a-3a092108816e")}
62- ReplicationMode : Synchronous
63- ReplicationStatus : NotInPartnership
64- PSComputerName :
39+ ``` powershell
40+ New-SRGroup -ComputerName "SR-SRV05" -Name "ReplicationGroup01" -VolumeName "D:" -LogVolumeName "E:"
6541```
6642
67- This command creates a replication group for server named SR-SRV05.
68- The command specifies the replicated volume and the log volume.
69- Because this command does not specify other parameters, the replication group uses default values.
70- Replication does not start until you run the New-SRPartnership cmdlet.
43+ This command creates a replication group for server named SR-SRV05. The command specifies the
44+ replicated volume and the log volume. Because this command does not specify other parameters, the
45+ replication group uses default values. Replication does not start until you run the
46+ ` New-SRPartnership ` cmdlet.
7147
7248### Example 2: Create a replication group that uses custom properties
49+ ``` powershell
50+ $Parameters = @{
51+ ComputerName = 'SR-SRV05'
52+ Name = 'ReplicationGroup02'
53+ VolumeName = 'D:'
54+ LogVolumeName = 'E:'
55+ LogSizeInBytes = '32GB'
56+ EnableEncryption = $True
57+ }
58+ New-SRGroup @Parameters
7359```
74- PS C:\>New-SRGroup -ComputerName "SR-SRV05" -Name "ReplicationGroup02" -VolumeName "D:" -LogVolumeName "E:" -LogSizeInBytes 32GB -EnableEncryption
75- AllowVolumeResize : False
76- AsyncRPO :
77- ComputerName : SR-SRV05
78- Description :
79- Id : 1b0962d1-0771-49cb-bde5-7298db488263
80- IsAutoFailover :
81- IsCluster : False
82- IsEncrypted : True
83- IsInPartnership : False
84- IsPrimary :
85- IsSuspended :
86- IsWriteConsistency : False
87- LastInSyncTime :
88- LogSizeInBytes : 34359738368
89- LogVolume : e:\
90- Name : ReplicationGroup02
91- NumOfReplicas : 1
92- Partitions : {bc49f059-4f78-464d-b88a-3a092108816e}
93- Replicas : {MSFT_WvrReplica (PartitionId =
94- "bc49f059-4f78-464d-b88a-3a092108816e")}
95- ReplicationMode : Synchronous
96- ReplicationStatus : NotInPartnership
97- PSComputerName :
98- ```
9960
100- This command creates a replication group for server named SR-SRV05.
101- The command specifies the replicated volume and the log volume.
102- The command also specifies a custom log size in GB and enables replication traffic encryption.
103- Replication does not start until you run ** New-SRPartnership** .
61+ This command creates a replication group for server named SR-SRV05. The command specifies the
62+ replicated volume and the log volume. The command also specifies a custom log size in GB and enables
63+ replication traffic encryption. Replication does not start until you run ** New-SRPartnership** .
64+
65+ This example uses splatting to pass parameter values from the ` $Parameters ` variable to the command.
66+ Learn more about [ Splatting] ( /powershell/module/microsoft.powershell.core/about/about_splatting ) .
10467
10568## PARAMETERS
10669
10770### -AsJob
108- Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
71+ Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to
72+ complete.
10973
11074``` yaml
11175Type : SwitchParameter
@@ -120,9 +84,10 @@ Accept wildcard characters: False
12084` ` `
12185
12286### -CimSession
123- Runs the cmdlet in a remote session or on a remote computer.
124- Enter a computer name or a session object, such as the output of a [New-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227967) or [Get-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227966) cmdlet.
125- The default is the current session on the local computer.
87+ Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session
88+ object, such as the output of a [New-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227967)
89+ or [Get-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227966) cmdlet. The default is the
90+ current session on the local computer.
12691
12792` ` ` yaml
12893Type : CimSession[]
@@ -137,8 +102,8 @@ Accept wildcard characters: False
137102` ` `
138103
139104### -ComputerName
140- Specifies a single replica host computer NetBIOS name or fully qualified domain name (FQDN) of a computer to belong to the replication group.
141- The default value is the local computer.
105+ Specifies a single replica host computer NetBIOS name or fully qualified domain name (FQDN) of a
106+ computer to belong to the replication group. The default value is the local computer.
142107
143108` ` ` yaml
144109Type : String
@@ -183,9 +148,9 @@ Accept wildcard characters: False
183148` ` `
184149
185150### -EnableConsistencyGroups
186- Indicates that consistency groups are enabled for the replication group that contains multiple volumes.
187- Consistency groups provide write ordering.
188- This can be important, for example, for replication of application data on multiple volumes.
151+ Indicates that consistency groups are enabled for the replication group that contains multiple
152+ volumes. Consistency groups provide write ordering. This can be important, for example, for
153+ replication of application data on multiple volumes.
189154
190155If you enable consistency groups, it may decrease replication and write Input/Output performance.
191156
@@ -202,9 +167,9 @@ Accept wildcard characters: False
202167` ` `
203168
204169### -EnableEncryption
205- Indicates that this partnership should encrypt connection by using SMB AES-128-GCM.
206- Enabling encryption can protect Storage Replica block transfers from man-in-the-middle interception or reading.
207- Enabling encryption decreases performance.
170+ Indicates that this partnership should encrypt connection by using SMB AES-128-GCM. Enabling
171+ encryption can protect Storage Replica block transfers from man-in-the-middle interception or
172+ reading. Enabling encryption decreases performance.
208173
209174` ` ` yaml
210175Type : SwitchParameter
@@ -234,11 +199,12 @@ Accept wildcard characters: False
234199` ` `
235200
236201### -LogSizeInBytes
237- Specifies the aggregate size of log files on each server in the replication group for the volumes that are associated with this replication group.
238- The minimum size 512MB.
239- You can specify a value by using the Windows PowerShell byte conversion capability, such as 4GB or 3200MB.
202+ Specifies the aggregate size of log files on each server in the replication group for the volumes
203+ that are associated with this replication group. The minimum size 512MB. You can specify a value by
204+ using the Windows PowerShell byte conversion capability, such as 4GB or 3200MB.
240205
241- A value that is too small may cause decreased replication performance or increased recovery time after an interruption between computers.
206+ A value that is too small may cause decreased replication performance or increased recovery time
207+ after an interruption between computers.
242208
243209` ` ` yaml
244210Type : UInt64
@@ -253,10 +219,9 @@ Accept wildcard characters: False
253219` ` `
254220
255221### -LogVolumeName
256- Specifies a drive letter, mount point path, or volume GUID where Storage Replication creates destination replication logs.
257- The value must contain an NTFS-formatted volume or ReFS-formatted volume.
258- The path must exist.
259- The path cannot be a mapped drive or UNC path.
222+ Specifies a drive letter, mount point path, or volume GUID where Storage Replication creates
223+ destination replication logs. The value must contain an NTFS-formatted volume or ReFS-formatted
224+ volume. The path must exist. The path cannot be a mapped drive or UNC path.
260225
261226Storage Replication creates logs in the System Volume Information folder.
262227
@@ -288,9 +253,11 @@ Accept wildcard characters: False
288253` ` `
289254
290255### -ThrottleLimit
291- Specifies the maximum number of concurrent operations that can be established to run the cmdlet.
292- If this parameter is omitted or a value of ` 0` is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer.
293- The throttle limit applies only to the current cmdlet, not to the session or to the computer.
256+ Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If
257+ this parameter is omitted or a value of ` 0` is entered, then Windows PowerShell® calculates an
258+ optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the
259+ computer. The throttle limit applies only to the current cmdlet, not to the session or to the
260+ computer.
294261
295262` ` ` yaml
296263Type: Int32
@@ -305,16 +272,14 @@ Accept wildcard characters: False
305272` ` `
306273
307274# ## -VolumeName
308- Specifies an array of drive letters or mount point paths for the replica.
309- The volumes must exist.
275+ Specifies an array of drive letters or mount point paths for the replica. The volumes must exist.
310276The volumes cannot be mapped drives or UNC paths.
311277
312- This is an ordered list.
313- The order of volumes determines the order of replication.
314- For more information, see the *DestinationVolumeName* parameter of the New-SRPartnership cmdlet.
278+ This is an ordered list. The order of volumes determines the order of replication. For more
279+ information, see the **DestinationVolumeName** parameter of the `New-SRPartnership` cmdlet.
315280
316- We do not recommend replicating different drive letters or mount point paths.
317- The practice can cause application failures because of stored settings after a failover occurs.
281+ We do not recommend replicating different drive letters or mount point paths. The practice can cause
282+ application failures because of stored settings after a failover occurs.
318283
319284` ` ` yaml
320285Type: String[]
@@ -329,7 +294,10 @@ Accept wildcard characters: False
329294` ` `
330295
331296# ## CommonParameters
332- This cmdlet supports the common parameters : -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
297+ This cmdlet supports the common parameters : -Debug, -ErrorAction, -ErrorVariable,
298+ -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
299+ -WarningAction, and -WarningVariable. For more information, see
300+ [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
333301
334302# # INPUTS
335303
0 commit comments