我知道经典帐户有一个get-azurestorage cmdlet,但是当我尝试在Azure Automation Hybrid Worker中使用它时,我会遇到各种怪异的错误。
Get-AzureRmStorageAccount
仅将返回通过Azure Resource Manager(ARM)提供的存储帐户。它不会提供有关通过传统API创建的"经典"存储帐户的任何信息。
就检索经典存储帐户而言,CMDLET是Get-AzureStorageAccount
,而不是Get-AzureStorage
。