【问题标题】:Powershell - How to exclude a sub propertyPowershell - 如何排除子属性
【发布时间】:2022-11-30 20:37:09
【问题描述】:

我正在使用 Resource Graph 获取所有更改记录。所有更改记录都有“更改”属性,它也有子列。我想在所有记录中排除“properties.provisioningState”。

enter image description here

试过 -ExcludeProperty 但没有用

【问题讨论】:

    标签: azure powershell azure-powershell


    【解决方案1】:

    $totalChanges[12].properties.changes|选择 * -ExcludeProperty properties.provisioningState

    *

    得到这个作为输出。但是我能完全空白吗 *-

    【讨论】:

      猜你喜欢
      • 2017-10-25
      • 2021-01-21
      • 2016-01-07
      • 1970-01-01
      • 1970-01-01
      • 2017-11-23
      • 2018-03-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多