From cf849b8b4dac44e2d1152bcbb93dedbd583329dd Mon Sep 17 00:00:00 2001 From: "dixue@microsoft.com" Date: Tue, 14 Apr 2020 15:17:19 +0800 Subject: [PATCH 1/3] Remove alias and breaking change warning --- src/Accounts/Accounts/Errors/ResolveError.cs | 2 -- src/Accounts/Accounts/help/Resolve-AzError.md | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Accounts/Accounts/Errors/ResolveError.cs b/src/Accounts/Accounts/Errors/ResolveError.cs index 6a2b8603a626..038228e14c85 100644 --- a/src/Accounts/Accounts/Errors/ResolveError.cs +++ b/src/Accounts/Accounts/Errors/ResolveError.cs @@ -25,8 +25,6 @@ namespace Microsoft.Azure.Commands.Profile.Errors { - [GenericBreakingChange("The `Resolve-Error` alias will be removed in a future release. Please change any scripts that use this alias to use `Resolve-AzError` instead.")] - [Alias("Resolve-Error")] [Cmdlet("Resolve", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Error", DefaultParameterSetName = ResolveError.AnyErrorParameterSet)] [OutputType(typeof(AzureErrorRecord))] [OutputType(typeof(AzureExceptionRecord))] diff --git a/src/Accounts/Accounts/help/Resolve-AzError.md b/src/Accounts/Accounts/help/Resolve-AzError.md index 5020f511f9af..a52714d05dd8 100644 --- a/src/Accounts/Accounts/help/Resolve-AzError.md +++ b/src/Accounts/Accounts/help/Resolve-AzError.md @@ -214,7 +214,7 @@ Accept wildcard characters: False ``` ### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS From 12a818200fe12518f36ca4170cf1dcfb9ce8b6aa Mon Sep 17 00:00:00 2001 From: "dixue@microsoft.com" Date: Tue, 14 Apr 2020 17:34:34 +0800 Subject: [PATCH 2/3] add exception for breaking change issues --- .../Exceptions/Az.Accounts/BreakingChangeIssues.csv | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tools/StaticAnalysis/Exceptions/Az.Accounts/BreakingChangeIssues.csv diff --git a/tools/StaticAnalysis/Exceptions/Az.Accounts/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Accounts/BreakingChangeIssues.csv new file mode 100644 index 000000000000..6afd0947200b --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.Accounts/BreakingChangeIssues.csv @@ -0,0 +1,2 @@ +"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll","Microsoft.Azure.Commands.Profile.Errors.ResolveError","Resolve-AzError","0","1010","The cmdlet 'Resolve-AzError' no longer supports the alias 'Resolve-Error'.","Add the alias 'Resolve-Error back to the cmdlet 'Resolve-AzError'." \ No newline at end of file From d380410e3602645e7f316108b15337a6106c8a0b Mon Sep 17 00:00:00 2001 From: "dixue@microsoft.com" Date: Tue, 14 Apr 2020 19:25:06 +0800 Subject: [PATCH 3/3] update changelog --- src/Accounts/Accounts/ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Accounts/Accounts/ChangeLog.md b/src/Accounts/Accounts/ChangeLog.md index ec51c9c65751..b5175361f256 100644 --- a/src/Accounts/Accounts/ChangeLog.md +++ b/src/Accounts/Accounts/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Removed alias of `Resolve-AzError` * Updated Azure PowerShell survey URL in `Resolve-AzError` [#11507] ## Version 1.7.4