Closed AlexanderSehr closed 5 years ago
@MrMCake The module "Az.StorageTable" is not released from this repo, and not owned by our team.
But you can install module "AzureRmStorageTable" 2.0.2 instead of "Az.StorageTable" (This module also not owned by our team, and not release from this repo), and the cmdlet name looks like : Add-AzTableRow, Add-AzTableRow, Get-AzTableRow ...
This works on my machine with Laster Az.Storage, Az.Resources module installed, like following.
$storageTable = (Get-AzureStorageTable -Name $tableName -Context $ctx).CloudTable
Add-AzTableRow -table $storageTable -partitionKey $partitionKey1 -rowKey ("CA") -property @{"username"="Chris";"userid"=1}
Get-AzTableRow -table $storageTable -partitionKey $partitionKey1
Thank you @blueww. I was directed to this repository. Sorry for the inconvenience.
@MrMCake
After contact with the code writer, I get:
The module for Table should be "AzTables" or "AzureRmStorageTable", but not "Az.StorageTable". "AzTables" should be the formal module name, and the old name "AzureRmStorageTable" is kept since some customers are still using it. The correct module : https://www.powershellgallery.com/packages/AzTable
To raise the issue for "AzTables" or "AzureRmStorageTable", currently can raise in https://github.com/paulomarquesc/AzureRmStorageTable. (This might change in the future)
This is the documentation, that includes a troubleshooting section: https://paulomarquesc.github.io/working-with-azure-storage-tables-from-powershell/
@blueww Hey, thanks for reaching out. I have to admit, the response confuses me a little bit. So AzTables replaces the "old" 'AzureRMStorageTable'. However, I was referring just to the fact that the 'Az.StorageTable' module refers to an AzureRM module down the line. :P In our project we're just installing all Az.* modules in the BuildAgent and thus came across this issue at importing. I'll raise this at the appropriate repository :) Thanks
edit: Here is the link: https://github.com/Liminghao0922/AzStorageTable/issues/1
@MrMCake The old module name is 'AzureRMStorageTable', and new name is "AzTables". Anyway, both of them works now.
If you want to install all Azure Powershell module (module from this repo), please install with "Install-Module -Name Az -Repository PSGallery -Force", instead of install all modules whose name start with "Az".
BTW, as I know the module writer of "AzTables" , is asking the owner of 'Az.StorageTable' module to unpublish 'Az.StorageTable'.
Description
Installing and importing the latest releases I couldn't help but notice, that Az.StorageTable has a dependency to AzureRM.Profile. The error message on import was
The script 'AzStorageTableCoreHelper.psm1' cannot be run because the following modules that are specified by the "#requires" statements of the script are missing: AzureStorage
Further investigation revleaded the following path:
Steps to reproduce
Environment data
Module versions
Debug output
Error output