There will be time where you need to select a given value from list of value.
Let’s say, we want to store a azure location on to a variable called x.
We first store the value from Get-Azurelocation and Select Displayname. But
Let’s first find a way to extract , Get-AzureLocation will give full list of the Location , then pipe the result to Select and list out the DisplayName value.
As show here, it displays with the heading.
Let’s store the value and see what PowerShell offers in terms of extracting value from variable.
As seen above, the result set is stored with properties as part of it.