Exercise: Resolve virtual machine connection
After going through the troubleshooting exercise you now know how to resolve the issues. Follow these steps in the Azure portal:
Select Home to return to the Azure portal home screen.
In the resource menu, select All Resources.
Select LabVM.
In Settings, select Networking.
Select Add inbound port rule.
On the Add inbound security rule tab, type or select the following values:
Destination port ranges: 22
Action: Allow
Priority: 100
Name: SSH_port_22
Select Add.
Wait until the security rule has been deployed.
In Settings, select Connect.
Select Test your connection.
Select Test connection.
Notice that connectivity is now allowed and you've resolved the connectivity issue.