AzureRmStorageTable icon indicating copy to clipboard operation
AzureRmStorageTable copied to clipboard

Clash with new versions of Az.Storage 5.6.0 or 5.7.0

Open lboening opened this issue 1 year ago • 1 comments

Describe the bug Az.StorageTable will not import if Az.Storage 5.6.0 or Az.Storage 5.7.0 are only available versions

Not sure what exactly who is responsible. I see PaulCheng and Liminghao0922 as possible authors.

Error Message

Import-Module: The script 'AzStorageTableCoreHelper.psm1' cannot be run because the following modules that are specified by the "#requires" statements of the script are missing: Az.Storage.

PowerShell Version Include here the full output of the following command line:

Name                           Value
----                           -----
PSVersion                      7.3.4
PSEdition                      Core
GitCommitId                    7.3.4
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Complete list of Azure related Powershell modules Paste here the complete output of Get-Module *az* -ListAvailable

Get-InstalledModule -name az.storage -AllVersions

Version Name Repository Description


5.6.0 Az.Storage PSGallery Microsoft Azure PowerShell - Storage ser… 5.7.0 Az.Storage PSGallery Microsoft Azure PowerShell - Storage ser…

Code Snippet Import-Module Az.StorageTable

More information

  • OS: Windows 10

Additional context Other scripts that require Az.Storage work.

lboening avatar Jul 12 '23 11:07 lboening

Is version 2.1.0 published to PowerShellGallery.com? Find-Module Az.StorageTable picks up https://www.powershellgallery.com/packages/Az.StorageTable/1.0.7

I have installed module AzureRmStorageTable 2.1.0.

The problem seems to occur when I run Azure in Elevated mode, but not when run in non-elevated mode. Could it be that Microsoft will not allow New-AzStorageContext for this reason?

lboening avatar Jul 12 '23 11:07 lboening