I want to create a dictionary, on which later on I would like to iterate. So the dictonary would look like this:
$dictionary =
subnet |address
xyz | 10.1.2.0/24
abc | 10.1.3.0/24
psh | 10.1.4.0/24
And i would like to iterate
foreach ($item in $dictionary){
$dmz = New-AzVirtualNetworkSubnetConfig -Name $item.subnet -AddressPrefix $item.address
}
Does anyone knows how to create such a dictionary/table? As i am not really familiar with powershell, but I would like to create a simple script