Get-EC2Instance |%{ $.RunningInstance } | select-object InstanceId,LaunchTime,@{Name='Value'; Expression={$.Tag.Value} }, @{Name='Key'; Expression={$_.Tag.Key} }
Each Value and Key have multiple values as you can see in the screenshot. How to rewrite the code so the output can look like:
Aucun commentaire:
Enregistrer un commentaire