From faeb4dd52b1c2166222c3464bacf137a5d2362f6 Mon Sep 17 00:00:00 2001 From: blueww Date: Tue, 3 Dec 2024 10:46:14 +0800 Subject: [PATCH] Fixed error message when creating OAuth based Storage context without first login with Connect-AzAccount --- 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 be44cd301115..931412a65a03 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -19,6 +19,8 @@ --> ## Upcoming Release * Upgraded Azure.Core to 1.44.1. +* Fixed error message when creating OAuth based Storage context without first login with Connect-AzAccount. + - `New-AzStorageContext` ## Version 8.0.0 * When downloading blob with parameter AbsoluteUri (alias Uri, BlobUri), not allow input parameter Context together. 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;