1
PS C:\> Get-EC2Instance |%{ $_.RunningInstance } | Select-Object InstanceId,ImageID,@{Name='TagValues'; Expression={ ($_.Tags |%{ $_.Value }) }}
InstanceId ImageId TagValues
---------- ------- ---------
i-230151d5 ami-20224b10 Scott
i-8c80f27a ami-e7527ed7 {landscape123, test123}
i-3d3195cb ami-0b5f073b temp
如何修改我的命令,以便只過濾和顯示「風景*」?過濾器powershell輸出值
InstanceId ImageId TagValues
---------- ------- ---------
i-8c80f27a ami-e7527ed7 landscape123