From f67a4a5e1081f314c1e9197ee967ddce29757c0e Mon Sep 17 00:00:00 2001 From: Wei Wei Date: Wed, 21 Apr 2021 12:07:14 +0800 Subject: [PATCH] [Storage] Add breaking change warning for Remove-AzRmStorageShare --- src/Storage/Storage.Management/ChangeLog.md | 2 ++ src/Storage/Storage.Management/File/RemoveAzureStorageShare.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index 32e95dcab50b..c23e415c353c 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -25,6 +25,8 @@ - `New-AzStorageAccount` * Fixed an issue that delete immutable blob will prompt incorrect message. - `Remove-AzStorageAccount` +* Added breaking change warning message for upcoming cmdlet breaking change + - `Remove-AzRmStorageShare` ## Version 3.5.1 * Fixed copy blob fail with source context as Oauth [#14662] diff --git a/src/Storage/Storage.Management/File/RemoveAzureStorageShare.cs b/src/Storage/Storage.Management/File/RemoveAzureStorageShare.cs index f6dc28090866..64e7a8f4878b 100644 --- a/src/Storage/Storage.Management/File/RemoveAzureStorageShare.cs +++ b/src/Storage/Storage.Management/File/RemoveAzureStorageShare.cs @@ -16,6 +16,7 @@ using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; using Microsoft.Azure.Management.Storage; using Microsoft.Azure.Management.Storage.Models; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using System; using System.Collections; using System.Collections.Generic; @@ -23,6 +24,7 @@ namespace Microsoft.Azure.Commands.Management.Storage { + [GenericBreakingChange("Currently if the share has snapshots, snapshots will be removed together with the share. In a future release, snapshots will not be removed by default, need specify new parameter '-IncludeAllSnapshot' to remove snapshots together.")] [Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMStoragePrefix + StorageShareNounStr, DefaultParameterSetName = AccountNameParameterSet, SupportsShouldProcess = true), OutputType(typeof(bool))] public class RemoveAzureStorageShareCommand : StorageFileBaseCmdlet {