当我在Azure Powershell任务中运行此代码时
Get-AzureRmStorageAccount -ResourceGroupName "****V2"
$storageAccounts = Get-AzureRmStorageAccount -ResourceGroupName "****V2"
Write-Host $storageAccounts
Write-Host $storageAccounts.value
我知道:
Get-AzureRmStorageAccount -ResourceGroupName "****V2"
返回列表,但是变量显示为空。无法将返回值存储在变量上吗?