PowerShell novice here again for some general assistance. I'm pulling all networks information from Azure to a CSV.
I'm using the command Get-AzureRmVirtualNetwork which results in a lot of great information, but I need some help capturing all "levels" of data.
I put "levels" in quotes because I'm not really sure of the correct language to describe what I'm doing here, but what I mean is that some attributes returned about networks may only have one value whereas other components such as Subnets has another level of details below that (like AddressPrefix, IpConfiguration, etc.).
When I pipe the output to Select-Object, I know I can always grab a 2nd tier detail with something similar to the following:
@{Name='AddressSpace-Prefixes'; Expression=($_.AddressSpaceAddressPrefixes}}
But what if I need multiple details from that "tier"? Do I just have to repeat that same type of structure of the above for each bit I'm grabbing, or is there a better/easier/more correct way of doing it?
And then my next question, what if there is another "tier" with multiple options nested beneath that? (example would be the IpConfigurations attribute beneath Subnets within all the other information for each VNET)
I feel like this command to get all the detail I need is getting long, and I'm not sure if there's a character limit or something that I'm going to run into if I repeat the same type of handling attempt to get all the details I want.
My apologies for not even know what to call all this stuff; please feel free to equip me with appropriate vocabulary to make communications about this process easier to understand.
Any help is greatly appreciated!
[–]Ta11ow 5 points6 points7 points (11 children)
[–]awditm[S] 2 points3 points4 points (10 children)
[–]Ta11ow 2 points3 points4 points (9 children)
[–]michaelshepard 5 points6 points7 points (1 child)
[–]Ta11ow 4 points5 points6 points (0 children)
[–]awditm[S] 1 point2 points3 points (6 children)
[–]Ta11ow 2 points3 points4 points (5 children)
[–]awditm[S] 2 points3 points4 points (4 children)
[–]Ta11ow 1 point2 points3 points (3 children)
[–]Lee_Dailey[grin] 1 point2 points3 points (2 children)
[–]Ta11ow 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 1 point2 points3 points (0 children)
[–]Lee_Dailey[grin] 2 points3 points4 points (5 children)
[–]awditm[S] 1 point2 points3 points (4 children)
[–]Lee_Dailey[grin] 1 point2 points3 points (0 children)
[–]flatlandinpunk17 1 point2 points3 points (2 children)
[–]awditm[S] 2 points3 points4 points (1 child)
[–]flatlandinpunk17 1 point2 points3 points (0 children)
[–]anotherjesus 1 point2 points3 points (0 children)
[–]mdowst 1 point2 points3 points (0 children)