Fix ssh port issue
This commit is contained in:
Родитель
1fbdb755e8
Коммит
43756471b0
|
@ -4411,6 +4411,14 @@ Function GetAllDeployementData($DeployedServices, $ResourceGroups)
|
|||
{
|
||||
Add-Member -InputObject $QuickVMNode -MemberType NoteProperty -Name "$($endPoint.EndpointName)Port" -Value $endPoint.PublicPort -Force
|
||||
}
|
||||
if($AllEndpoints.Length -eq 0)
|
||||
{
|
||||
$sg = Get-AzureRmNetworkSecurityGroup -ResourceGroupName $testVM.ResourceGroupName
|
||||
foreach($rule in $sg.SecurityRules)
|
||||
{
|
||||
Add-Member -InputObject $QuickVMNode -MemberType NoteProperty -Name "$($rule.Name)Port" -Value $rule.DestinationPortRange -Force
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach ( $nic in $NICdata )
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче