Search code examples
azurepowershellazure-runbookazure-rmaz

How to query entities from Azure Storage Table with AzureRM?


I have a couple of Azure Runbooks which use AzureRM to automatically scale service plans depending in some configuration.

That configuration is saved on my Azure Storage Account as entities in a table.

However, I can't find a way to read the entities from that table using AzureRM in my runbooks...

I can't use any Az modules because it would complain about also importing AzureRM next to Az. And I don't want to have 2 separate automation accounts just to be able to use AzureRM and Az at the same time.

So is there any way to get all the entities from an Azure Storage Table using the AzureRM module?


Solution

  • Thank to the comment of Michale B. on my question, the following has fixed my problem:

    Could also make use of the alias option in the Az module. learn.microsoft.com/en-us/powershell/module/az.accounts/… . This will allow you to use (most) AzureRM functions, while also using the Az module