I know there is a Get-AzureStorage cmdlet for classic account, but when I try to use it in azure automation hybrid worker, I run into all kind of weird error.
Get-AzureRmStorageAccount
is only going to return storage accounts provisioned through Azure Resource Manager (ARM). It won't provide any info on "classic" storage accounts created through the legacy API.
As far as retrieving Classic storage accounts, the cmdlet is Get-AzureStorageAccount
, not Get-AzureStorage
.