Motivation: Wanted convenience of a Dictionary on the server side MVC controller (for some key look-up based logic), yet send the same list of objects down to Knockout Ajax client, which most readily consumes lists as Javascript object arrays.
[Read More]
Get-AzureVM | #this first one gets the entire list of VMs in subscription
Get-AzureVM | # this one gets the detailed object for each specific VM
%{
$port = ($_ | Get-AzureEndpoint | ? {$_.name -like "Remote*"})[0].Port;
$null = $_.DNSName -match 'https://(.*?)/'
write-host "$($_.Name) - $($matches[1]):$($port)"
}
[Read More]