Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Shital Savekar 2018-05-16 13:05:09 -07:00
Родитель 1914880f95 a38d05771d
Коммит a26f37ccd7
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -4754,6 +4754,12 @@ Function GetAllDeployementData($DeployedServices, $ResourceGroups)
foreach ($securityRule in $SGData.Properties.securityRules)
{
Add-Member -InputObject $QuickVMNode -MemberType NoteProperty -Name "$($securityRule.name)Port" -Value $securityRule.properties.destinationPortRange -Force
#This is workaround to get SSH port from corpnet enabled VMs.
if (($securityRule.name -imatch "Cleanuptool-22-Corpnet") -and (!$QuickVMNode.SSHPort -ne "22"))
{
LogMsg "Cleanuptool-22-Corpnet detected. Applying workaroud."
Add-Member -InputObject $QuickVMNode -MemberType NoteProperty -Name "SSHPort" -Value 22 -Force
}
}
if($AllEndpoints.Length -eq 0)
{