When importing the module in an Azure Automation account, I keep getting errors with regards to Microsoft.Azure.Cosmos.Table objects. For example:
New-Object : Cannot find type [Microsoft.Azure.Cosmos.Table.TableQuery]: verify that the assembly containing this type is loaded.
Az.Storage 1.1.1 and Az.Resources 1.2.1 are imported to the Automation Account.
Is AzureRmStorageTable (2.0.1) supported on Azure Automation?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@tinod Thank you for your interest in Azure cloud services and for bringing this to our attention. We are currently investigating and will update you when we have accurate information.
It looks as if Az.Storage 1.1.0 included the Microsoft.Azure.Cosmos.Table.dll, and Az.Storage 1.1.1 does not, hence the problems.
Hi @tinodo , the problem is that PS Gallery is publishing an old (3 months old) preview version under version 1.1.1 which is making this module to be installed as latest if allow preview setting is enabled. I reached out to the PG to unpublish that version from the gallery.
@tinod Again, thank you for bringing this to our attention! We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.