Exercise: Troubleshoot virtual machine connection

Completed

In this exercise you'll troubleshoot connection issues between virtual machines running in Azure.

Create the exercise environment

Using the Cloud Shell on the right, run these commands to create the example topology. The environment will take approximately 5 minutes to build.

  1. Clone the setup script from GitHub.

    git clone https://github.com/MicrosoftDocs/mslearn-troubleshoot-platform-as-service-issues networking
    
  2. Run the setup script.

    bash networking/setup.sh
    
    

Exercise

You need to find the causes of connectivity problems to an Azure virtual machine using SSH.

Sign in to the Azure portal with the same credentials you used to start the sandbox.

  1. In the resource menu, select All Resources.

  2. Select LabClientVM.

  3. On the top row of the LabClientVM Overview page, select Connect and select SSH.

    screen shot showing the connect option for a virtual machine.

  4. Notice that there is a Test your connection link. This provides a troubleshooter to test connections between resources, but this functionality is not available in this sandbox and we will view the settings manually.

    Screen shot showing the test your connection option.

  5. Select Networking.

  6. In the Network security group section, notice that there is a rule at the top of the priority list that will allow TCP connections on port 22.

    Screenshot of rule to allow SSH

  7. At the top of the screen, select All resources.

  8. Select LabVM.

  9. Select Networking.

  10. In the Network security group section, notice that there is not a rule at the top of the priority list that will allow TCP connections on port 22.

    Screenshot showing that there is no rule to allow SSH connections.

  11. Notice that, except for load balancers and virtual networks, the highest priority rule will deny all inbound traffic. This will cause connectivity problems.

  12. Keep the tab open to the Azure portal for the next exercise.