Skip to content

Commit 26fada6

Browse files
authored
[Storage] Add breaking warning for upload file cmdlet (Azure#27392)
1 parent 2123c46 commit 26fada6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Storage/Storage.Management/ChangeLog.md

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Add warning message for upcoming breaking change on upload Azure file
22+
- `Set-AzStorageFileContent`
2123

2224
## Version 8.2.0
2325
* Supported new SkuName when create/update Storage account for Files Provisioned v2 account type: "StandardV2_LRS", "StandardV2_GRS", "StandardV2_ZRS", "StandardV2_GZRS", "PremiumV2_LRS", "PremiumV2_ZRS"

src/Storage/Storage/File/Cmdlet/SetAzureStorageFileContent.cs

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
2121
using Microsoft.Azure.Storage.DataMovement;
2222
using Microsoft.Azure.Storage.File;
2323
using Microsoft.WindowsAzure.Commands.Common;
24+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2425
using Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel;
2526
using Microsoft.WindowsAzure.Commands.Storage.Common;
2627
using Microsoft.WindowsAzure.Commands.Utilities.Common;
@@ -35,6 +36,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
3536
using System.Threading.Tasks;
3637
using LocalConstants = Microsoft.WindowsAzure.Commands.Storage.File.Constants;
3738

39+
[CmdletOutputBreakingChangeWithVersion(typeof(AzureStorageFile), "14.0.0", "9.0.0", ChangeDescription = "The ContentHash properties will be removed from the uploaded Azure file when file size > 1TB, or upload with Oauth credencial, or with -DisAllowTrailingDot.")]
3840
[Cmdlet("Set", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileContent", SupportsShouldProcess = true, DefaultParameterSetName = LocalConstants.ShareNameParameterSetName), OutputType(typeof(AzureStorageFile))]
3941
public class SetAzureStorageFileContent : StorageFileDataManagementCmdletBase, IDynamicParameters
4042
{

0 commit comments

Comments
 (0)