From 4e2b0d07eb0faeb1763c264c42cfe2500e3ff582 Mon Sep 17 00:00:00 2001 From: Wei Wei Date: Mon, 17 Apr 2023 15:38:02 +0800 Subject: [PATCH] [Storage] Allowed to clear blob tags (#21560) --- src/Storage/Storage.Management/ChangeLog.md | 2 ++ src/Storage/Storage/Blob/Cmdlet/SetAzStorageBlobTag.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index 718d56979f24..02e4ddf0c834 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -29,6 +29,8 @@ * Added warning messages for an upcoming cmdlet breaking change - `New-AzStorageAccount` - `Set-AzStorageAccount` +* Allowed to clear blob tags on a blob + - `Set-AzStorageBlobTag` * Updated Azure.Core to 1.31.0 ## Version 5.5.0 diff --git a/src/Storage/Storage/Blob/Cmdlet/SetAzStorageBlobTag.cs b/src/Storage/Storage/Blob/Cmdlet/SetAzStorageBlobTag.cs index 98b2442ee014..a7c8be99ae49 100644 --- a/src/Storage/Storage/Blob/Cmdlet/SetAzStorageBlobTag.cs +++ b/src/Storage/Storage/Blob/Cmdlet/SetAzStorageBlobTag.cs @@ -74,7 +74,7 @@ public string Container private string ContainerName = String.Empty; [Parameter(HelpMessage = "Blob Tags", Mandatory = true)] - [ValidateNotNullOrEmpty] + [ValidateNotNull] public Hashtable Tag { get