Skip to content

Commit 01158db

Browse files
geolivoVeryEarlyankushbindlish2
authored
[Az.StorageSync] Change default parameter set of Invoke-AzStorageSyncChangeDetection (#16986)
* initial commit * update changelog * update change detection doc * regenerate docs * Update ChangeLog.md * Create BreakingChangeIssues.csv Co-authored-by: Yabo Hu <[email protected]> Co-authored-by: ankushbindlish2 <[email protected]>
1 parent dc43bd3 commit 01158db

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

src/StorageSync/StorageSync/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Changed default parameter set of Invoke-AzStorageSyncChangeDetection to use full share detection
2122

2223
## Version 1.6.1
2324
* Fixed a bug where not all properties of PSSyncSessionStatus and PSSyncActivityStatus objects were being populated properly.

src/StorageSync/StorageSync/CloudEndpoint/InvokeChangeDetectionCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace Microsoft.Azure.Commands.StorageSync.CloudEndpoint
3333
/// </summary>
3434
/// <seealso cref="Microsoft.Azure.Commands.StorageSync.Common.StorageSyncClientCmdletBase" />
3535
[Cmdlet(VerbsLifecycle.Invoke, StorageSyncNouns.NounAzureRmStorageSyncChangeDetection,
36-
DefaultParameterSetName = StorageSyncParameterSets.ChangeDetectionStringAndDirectoryParameterSet, SupportsShouldProcess = true), OutputType(typeof(void))]
36+
DefaultParameterSetName = StorageSyncParameterSets.ChangeDetectionFullShareStringParameterSet, SupportsShouldProcess = true), OutputType(typeof(void))]
3737
public class InvokeChangeDetectionCommand : StorageSyncClientCmdletBase
3838
{
3939
/// <summary>

src/StorageSync/StorageSync/help/Invoke-AzStorageSyncChangeDetection.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@ This command can be used to manually initiate the detection of namespace changes
2020
2121
## SYNTAX
2222

23-
### StringAndDirectoryParameterSet (Default)
23+
### FullShareStringParameterSet (Default)
2424
```
2525
Invoke-AzStorageSyncChangeDetection [-ResourceGroupName] <String> [-StorageSyncServiceName] <String>
26-
[-SyncGroupName] <String> -Name <String> -DirectoryPath <String> [-Recursive] [-PassThru] [-AsJob]
27-
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
26+
[-SyncGroupName] <String> -Name <String> [-PassThru] [-AsJob] [-DefaultProfile <IAzureContextContainer>]
27+
[-WhatIf] [-Confirm] [<CommonParameters>]
2828
```
2929

30-
### StringAndPathParameterSet
30+
### StringAndDirectoryParameterSet
3131
```
3232
Invoke-AzStorageSyncChangeDetection [-ResourceGroupName] <String> [-StorageSyncServiceName] <String>
33-
[-SyncGroupName] <String> -Name <String> -Path <String[]> [-PassThru] [-AsJob]
33+
[-SyncGroupName] <String> -Name <String> -DirectoryPath <String> [-Recursive] [-PassThru] [-AsJob]
3434
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
3535
```
3636

37-
### FullShareStringParameterSet
37+
### StringAndPathParameterSet
3838
```
3939
Invoke-AzStorageSyncChangeDetection [-ResourceGroupName] <String> [-StorageSyncServiceName] <String>
40-
[-SyncGroupName] <String> -Name <String> [-PassThru] [-AsJob] [-DefaultProfile <IAzureContextContainer>]
41-
[-WhatIf] [-Confirm] [<CommonParameters>]
40+
[-SyncGroupName] <String> -Name <String> -Path <String[]> [-PassThru] [-AsJob]
41+
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
4242
```
4343

4444
### ResourceIdAndDirectoryParameterSet
@@ -178,7 +178,7 @@ Name of the CloudEndpoint. The name is a GUID, not the friendly name that's disp
178178
179179
```yaml
180180
Type: System.String
181-
Parameter Sets: StringAndDirectoryParameterSet, StringAndPathParameterSet, FullShareStringParameterSet
181+
Parameter Sets: FullShareStringParameterSet, StringAndDirectoryParameterSet, StringAndPathParameterSet
182182
Aliases: CloudEndpointName
183183

184184
Required: True
@@ -238,7 +238,7 @@ Resource Group Name.
238238
239239
```yaml
240240
Type: System.String
241-
Parameter Sets: StringAndDirectoryParameterSet, StringAndPathParameterSet, FullShareStringParameterSet
241+
Parameter Sets: FullShareStringParameterSet, StringAndDirectoryParameterSet, StringAndPathParameterSet
242242
Aliases:
243243

244244
Required: True
@@ -268,7 +268,7 @@ Name of the StorageSyncService.
268268
269269
```yaml
270270
Type: System.String
271-
Parameter Sets: StringAndDirectoryParameterSet, StringAndPathParameterSet, FullShareStringParameterSet
271+
Parameter Sets: FullShareStringParameterSet, StringAndDirectoryParameterSet, StringAndPathParameterSet
272272
Aliases: ParentName
273273

274274
Required: True
@@ -283,7 +283,7 @@ Name of the SyncGroup.
283283
284284
```yaml
285285
Type: System.String
286-
Parameter Sets: StringAndDirectoryParameterSet, StringAndPathParameterSet, FullShareStringParameterSet
286+
Parameter Sets: FullShareStringParameterSet, StringAndDirectoryParameterSet, StringAndPathParameterSet
287287
Aliases:
288288

289289
Required: True
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation"
2+
"Az.StorageSync","Microsoft.Azure.Commands.StorageSync.CloudEndpoint.InvokeChangeDetectionCommand","Invoke-AzStorageSyncChangeDetection","0","1060","The parameter set 'StringAndDirectoryParameterSet' for cmdlet 'Invoke-AzStorageSyncChangeDetection' is no longer the default parameter set.","Change the default parameter for cmdlet 'Invoke-AzStorageSyncChangeDetection' back to 'StringAndDirectoryParameterSet'."
3+
"Az.StorageSync","Microsoft.Azure.Commands.StorageSync.CloudEndpoint.InvokeChangeDetectionCommand","Invoke-AzStorageSyncChangeDetection","0","1060","The parameter set 'StringAndDirectoryParameterSet' for cmdlet 'Invoke-AzStorageSyncChangeDetection' is no longer the default parameter set.","Change the default parameter for cmdlet 'Invoke-AzStorageSyncChangeDetection' back to 'StringAndDirectoryParameterSet'."

0 commit comments

Comments
 (0)