我假设此警告引起了问题。
WARNING: GeoReplicationEnabled property will be deprecated in a future release of Azure PowerShell. The value will be merged into the AccountType property
因为当我执行此命令时
Get-AzureWebsite | export-csv -Path "C:\Users\km\Desktop\AzureProject\Hello Pay-As-You-Go-Website.csv"
我的 CSV 文件完全没问题
所以我遇到的问题是
当我执行这个命令时
Get-AzureStorageAccount | Format-Table -Property StorageAccountName, Location, AccountType, StorageAccountStatus
结果是这样的
StorageAccountName Location AccountType
StorageAccountStatus
--------------------- --------- ------------ -------------------- HelloSushi East US Standard_GRS CreatedWARNING: GeoReplicationEnabled property will be deprecated in a future release of Azure PowerShell. The value will be merged into the AccountType property.
我添加此代码以将此结果移动到 CSV,如下所示
Get-AzureStorageAccount | Format-Table -Property StorageAccountName, Location, AccountType, StorageAccountStatus | export-csv -Path "C:\Users\km\Desktop\AzureProject\Susco Pay-As-You-Go-Storage.csv"
但是我检查了 CSV.file,它完全没有意义。这不是同一个。
所以,
我想在 CSV 上准确显示结果,就像我执行此代码时一样
Get-AzureStorageAccount | Format-Table -Property StorageAccountName, Location, AccountType, StorageAccountStatus
我怎样才能做到这一点?
最佳答案
关于csv - 将结果导出到 CSV Azure PowerShell 警告标志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34054587/