Skip to content
Code samples and resources for learn module "Troubleshoot inbound network connectivity for Azure Load Balancer"
Shell C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

page_type languages products description urlFragment
dotnet core
Scripts and stress test application for the module

Official Microsoft Sample

The repository contains the scripts that set up the lab environment for the module Troubleshoot inbound network connectivity for Azure Load Balancer. This repository also holds the code for the stress-testing application used by the lab.


File/folder Description
src/scripts Scripts that configure the lab environment
src/stresstest Source code for the stress test application
.gitignore Define what to ignore at commit time. List of changes to the sample. Guidelines for contributing to the sample. This README file.
LICENSE The license for the sample.


The stress test application requires the .NET Core SDK. The scripts are intended to be run from a BASH prompt in the Sandbox (Cloud Shell).


At the start of the lab, run bash src/ to build the load balancer, virtual machines, and virtual network.

Running the sample

To run the stresstest application:

1. Move to the /src/stresstest folder.
2. Run `dotnet stresstest $LOADBALANCERIP`
3. Allow the application to run for 5 minutes, and then press Enter to close it.

After running the stresstest application, run bash src/ to reconfigure the load balancer, virtual machines, and virtual network.

Run the stresstest application again and observe the results.

Follow the lab instructions to diagnose and correct the issues.

Run the stresstest application to verify that the system is functioning correctly again.


This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact with any additional questions or comments.

You can’t perform that action at this time.