From 82440fbc47bd2987fea80b6be6d43419599cfe06 Mon Sep 17 00:00:00 2001 From: Yabo Hu Date: Wed, 4 Dec 2024 15:42:04 +0800 Subject: [PATCH] =?UTF-8?q?Fixed=20error=20message=20when=20creating=20OAu?= =?UTF-8?q?th=20based=20Storage=20context=20without=E2=80=A6=20(#26826)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixed error message when creating OAuth based Storage context without first login with Connect-AzAccount (#26803) * fix changelog --------- Co-authored-by: Wei Wei Co-authored-by: NoriZC <110961157+NoriZC@users.noreply.github.com> --- src/Storage/Storage.Management/ChangeLog.md | 2 ++ src/Storage/Storage.common/Resources.Designer.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 af87be7f80d3..753ee3396f28 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release +* Fixed error message when creating OAuth based Storage context without first login with Connect-AzAccount. + - `New-AzStorageContext` * Upgraded Azure.Storage.Blobs to 12.23.0 * Upgraded Azure.Storage.Files.Shares to 12.21.0 * Upgraded Azure.Storage.Files.DataLake to 12.21.0 diff --git a/src/Storage/Storage.common/Resources.Designer.cs b/src/Storage/Storage.common/Resources.Designer.cs index 0f9d3fd31ef3..7e30b2efda95 100644 --- a/src/Storage/Storage.common/Resources.Designer.cs +++ b/src/Storage/Storage.common/Resources.Designer.cs @@ -39,7 +39,7 @@ internal Resources() { internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.WindowsAzure.Commands.Storage.Resources", typeof(Resources).Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.WindowsAzure.Commands.Storage.Common.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan;