How to create a load balancer in Azure (Free trial)











up vote
0
down vote

favorite












I'm trying to create a load balancer to sit in front of my two web machines although I'm confused by this screen (see attached). I'm not sure what to enter into the "Public IP address" field? If it's the IP then where do I get the value from?



Many thanks



Azure load balancer wizard
Azure load balancer










share|improve this question


























    up vote
    0
    down vote

    favorite












    I'm trying to create a load balancer to sit in front of my two web machines although I'm confused by this screen (see attached). I'm not sure what to enter into the "Public IP address" field? If it's the IP then where do I get the value from?



    Many thanks



    Azure load balancer wizard
    Azure load balancer










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm trying to create a load balancer to sit in front of my two web machines although I'm confused by this screen (see attached). I'm not sure what to enter into the "Public IP address" field? If it's the IP then where do I get the value from?



      Many thanks



      Azure load balancer wizard
      Azure load balancer










      share|improve this question













      I'm trying to create a load balancer to sit in front of my two web machines although I'm confused by this screen (see attached). I'm not sure what to enter into the "Public IP address" field? If it's the IP then where do I get the value from?



      Many thanks



      Azure load balancer wizard
      Azure load balancer







      azure azure-load-balancer






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 7 at 11:41









      Martin

      203




      203
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          If you create a public type of load balancer, you need create a new public IP address or use existing public IP address so that you can access the backend virtual machines via the public facing IP address as the frontend configuration. Here you just need to name a public IP such as Load balancer-pip and enter into the "Public IP address" field.



          Besides, if you want to add the two individual machines (not in an availability set or a scale set) as the backend pool, you need to create a Standard SKU of load balancer since Standard LB is fully integrated with a virtual network, you can put any virtual machine (with standard SKU public ip or without public IP)in a single virtual network as the backend pool endpoint, while the basic load balancer only support a single virtual machine or Virtual machines in a single availability set or virtual machine scale set.



          If the two web machines are in an existing availability set or a scale set, you can select the Basic SKU load balancer.



          For more information, you can see Azure Load balancer.






          share|improve this answer





















          • Thanks but I'm assuming setting up this load balancer will ultimately give me an IP address that my website can call to access the functionality hosted on the two web machines that sit behind the LB. If that's the case (i.e. I use a value of "balance-pip") then what is the IP of the LB?
            – Martin
            Nov 7 at 18:25










          • P.s the two VMs are within the same availability set. They are identical machines except for their names (names - vm1 and vm2)
            – Martin
            Nov 7 at 18:30










          • The IP of the LB is named by the value of entering into the "Public IP address" field. After you created a basic load balancer and set the availability set as the backend, configure your LB. You will see the real IP address in your Azure portal. You can give any value, which just is an LB name you defined, for example, you can use balance-pip, PIP, LB-IP or others.
            – Nancy Xiong
            Nov 8 at 1:09










          • Thank you, I can now see an IP
            – Martin
            Nov 8 at 11:34


















          up vote
          0
          down vote













          Taking a look at the screenshot provided there. You are on a free trial & are experimenting with the Azure Load Balancer.



          We have 2 SKU's:
          Basic
          Standard



          Since you are looking for an ELB (External/public Load Balancer) should you choose to use a standard. Then, the public IP as well as the backend VM's need to have a standard IP's.



          Thus, I would suggest the following:
          Note: Assuming that you have not exhausted the 5 free public Ip's that you get from Azure.



          Step 1: Deploy your webservers into an "Availability Set"
          Step 2: Deploy the basic SKU eternal load balancer with a public IP address
          Preferred to make it static.
          Step 3: Create load balancing rules as required over necessary ports for which your website is bound (443/80)
          - You may also choose to have a PAT done (Port Address Translation)
          - You can also test between affinity/tupples which provide sticky sessions in the order of client IP > Client IP & Protocol > Default/5tuple
          Step 4: Finally add the backend pool



          Troubleshooting further:
          Once you have reached this point, it's safe to say you have got the configuration right!
          But, check the following
          1. Check for NSG at the subnet level as well as the VM nic Level
          2. make sure you have allowed the Azure load balancer default rule
          3. Switch the probe protocol from HTTP to TCP if you application anticipates a 3-way handshake and an acknowledgment. (layer 3-4)
          4. VM with Public IPs:
          If your VM/VMs has a public IP's then keyNote the traffic outbound would take the respective public IP. Should you want the traffic to take the Load Balancer IP for SNAT. Then, kindly remove the public IP that is set on the VM/VM's.



          Effective testing:
          Browse your application by creating custom landing pages from a private window of a browser. Say ex;
          I hit VM1 - text over html header
          I hit VM2 - text over html header



          Should you have got this working, you are good to move your test workloads and applications on to these servers.



          Advanced Troubleshooting:
          - Here on the load balancer takes no blame as it's working as expected.
          - You would want to check the ports on the application servers
          - Public IP Time out: https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-tcp-idle-timeout



          Commands:
          Windows CMD:



          Netstat -ano | Findstr port#
          //replace port with the respective port number



          Linux:
          $ netstat -tulpn | grep port#
          //replace port with the respective port number



          Make sure that they are listening.




          • If you have a Linux machine. Make sure that your Ip tables are not blocking any custom ports that you may be using


          I hope this helps.



          Reference Documents:
          https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-troubleshoot
          https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-distribution-mode






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53188780%2fhow-to-create-a-load-balancer-in-azure-free-trial%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            If you create a public type of load balancer, you need create a new public IP address or use existing public IP address so that you can access the backend virtual machines via the public facing IP address as the frontend configuration. Here you just need to name a public IP such as Load balancer-pip and enter into the "Public IP address" field.



            Besides, if you want to add the two individual machines (not in an availability set or a scale set) as the backend pool, you need to create a Standard SKU of load balancer since Standard LB is fully integrated with a virtual network, you can put any virtual machine (with standard SKU public ip or without public IP)in a single virtual network as the backend pool endpoint, while the basic load balancer only support a single virtual machine or Virtual machines in a single availability set or virtual machine scale set.



            If the two web machines are in an existing availability set or a scale set, you can select the Basic SKU load balancer.



            For more information, you can see Azure Load balancer.






            share|improve this answer





















            • Thanks but I'm assuming setting up this load balancer will ultimately give me an IP address that my website can call to access the functionality hosted on the two web machines that sit behind the LB. If that's the case (i.e. I use a value of "balance-pip") then what is the IP of the LB?
              – Martin
              Nov 7 at 18:25










            • P.s the two VMs are within the same availability set. They are identical machines except for their names (names - vm1 and vm2)
              – Martin
              Nov 7 at 18:30










            • The IP of the LB is named by the value of entering into the "Public IP address" field. After you created a basic load balancer and set the availability set as the backend, configure your LB. You will see the real IP address in your Azure portal. You can give any value, which just is an LB name you defined, for example, you can use balance-pip, PIP, LB-IP or others.
              – Nancy Xiong
              Nov 8 at 1:09










            • Thank you, I can now see an IP
              – Martin
              Nov 8 at 11:34















            up vote
            0
            down vote



            accepted










            If you create a public type of load balancer, you need create a new public IP address or use existing public IP address so that you can access the backend virtual machines via the public facing IP address as the frontend configuration. Here you just need to name a public IP such as Load balancer-pip and enter into the "Public IP address" field.



            Besides, if you want to add the two individual machines (not in an availability set or a scale set) as the backend pool, you need to create a Standard SKU of load balancer since Standard LB is fully integrated with a virtual network, you can put any virtual machine (with standard SKU public ip or without public IP)in a single virtual network as the backend pool endpoint, while the basic load balancer only support a single virtual machine or Virtual machines in a single availability set or virtual machine scale set.



            If the two web machines are in an existing availability set or a scale set, you can select the Basic SKU load balancer.



            For more information, you can see Azure Load balancer.






            share|improve this answer





















            • Thanks but I'm assuming setting up this load balancer will ultimately give me an IP address that my website can call to access the functionality hosted on the two web machines that sit behind the LB. If that's the case (i.e. I use a value of "balance-pip") then what is the IP of the LB?
              – Martin
              Nov 7 at 18:25










            • P.s the two VMs are within the same availability set. They are identical machines except for their names (names - vm1 and vm2)
              – Martin
              Nov 7 at 18:30










            • The IP of the LB is named by the value of entering into the "Public IP address" field. After you created a basic load balancer and set the availability set as the backend, configure your LB. You will see the real IP address in your Azure portal. You can give any value, which just is an LB name you defined, for example, you can use balance-pip, PIP, LB-IP or others.
              – Nancy Xiong
              Nov 8 at 1:09










            • Thank you, I can now see an IP
              – Martin
              Nov 8 at 11:34













            up vote
            0
            down vote



            accepted







            up vote
            0
            down vote



            accepted






            If you create a public type of load balancer, you need create a new public IP address or use existing public IP address so that you can access the backend virtual machines via the public facing IP address as the frontend configuration. Here you just need to name a public IP such as Load balancer-pip and enter into the "Public IP address" field.



            Besides, if you want to add the two individual machines (not in an availability set or a scale set) as the backend pool, you need to create a Standard SKU of load balancer since Standard LB is fully integrated with a virtual network, you can put any virtual machine (with standard SKU public ip or without public IP)in a single virtual network as the backend pool endpoint, while the basic load balancer only support a single virtual machine or Virtual machines in a single availability set or virtual machine scale set.



            If the two web machines are in an existing availability set or a scale set, you can select the Basic SKU load balancer.



            For more information, you can see Azure Load balancer.






            share|improve this answer












            If you create a public type of load balancer, you need create a new public IP address or use existing public IP address so that you can access the backend virtual machines via the public facing IP address as the frontend configuration. Here you just need to name a public IP such as Load balancer-pip and enter into the "Public IP address" field.



            Besides, if you want to add the two individual machines (not in an availability set or a scale set) as the backend pool, you need to create a Standard SKU of load balancer since Standard LB is fully integrated with a virtual network, you can put any virtual machine (with standard SKU public ip or without public IP)in a single virtual network as the backend pool endpoint, while the basic load balancer only support a single virtual machine or Virtual machines in a single availability set or virtual machine scale set.



            If the two web machines are in an existing availability set or a scale set, you can select the Basic SKU load balancer.



            For more information, you can see Azure Load balancer.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 7 at 13:07









            Nancy Xiong

            1,878116




            1,878116












            • Thanks but I'm assuming setting up this load balancer will ultimately give me an IP address that my website can call to access the functionality hosted on the two web machines that sit behind the LB. If that's the case (i.e. I use a value of "balance-pip") then what is the IP of the LB?
              – Martin
              Nov 7 at 18:25










            • P.s the two VMs are within the same availability set. They are identical machines except for their names (names - vm1 and vm2)
              – Martin
              Nov 7 at 18:30










            • The IP of the LB is named by the value of entering into the "Public IP address" field. After you created a basic load balancer and set the availability set as the backend, configure your LB. You will see the real IP address in your Azure portal. You can give any value, which just is an LB name you defined, for example, you can use balance-pip, PIP, LB-IP or others.
              – Nancy Xiong
              Nov 8 at 1:09










            • Thank you, I can now see an IP
              – Martin
              Nov 8 at 11:34


















            • Thanks but I'm assuming setting up this load balancer will ultimately give me an IP address that my website can call to access the functionality hosted on the two web machines that sit behind the LB. If that's the case (i.e. I use a value of "balance-pip") then what is the IP of the LB?
              – Martin
              Nov 7 at 18:25










            • P.s the two VMs are within the same availability set. They are identical machines except for their names (names - vm1 and vm2)
              – Martin
              Nov 7 at 18:30










            • The IP of the LB is named by the value of entering into the "Public IP address" field. After you created a basic load balancer and set the availability set as the backend, configure your LB. You will see the real IP address in your Azure portal. You can give any value, which just is an LB name you defined, for example, you can use balance-pip, PIP, LB-IP or others.
              – Nancy Xiong
              Nov 8 at 1:09










            • Thank you, I can now see an IP
              – Martin
              Nov 8 at 11:34
















            Thanks but I'm assuming setting up this load balancer will ultimately give me an IP address that my website can call to access the functionality hosted on the two web machines that sit behind the LB. If that's the case (i.e. I use a value of "balance-pip") then what is the IP of the LB?
            – Martin
            Nov 7 at 18:25




            Thanks but I'm assuming setting up this load balancer will ultimately give me an IP address that my website can call to access the functionality hosted on the two web machines that sit behind the LB. If that's the case (i.e. I use a value of "balance-pip") then what is the IP of the LB?
            – Martin
            Nov 7 at 18:25












            P.s the two VMs are within the same availability set. They are identical machines except for their names (names - vm1 and vm2)
            – Martin
            Nov 7 at 18:30




            P.s the two VMs are within the same availability set. They are identical machines except for their names (names - vm1 and vm2)
            – Martin
            Nov 7 at 18:30












            The IP of the LB is named by the value of entering into the "Public IP address" field. After you created a basic load balancer and set the availability set as the backend, configure your LB. You will see the real IP address in your Azure portal. You can give any value, which just is an LB name you defined, for example, you can use balance-pip, PIP, LB-IP or others.
            – Nancy Xiong
            Nov 8 at 1:09




            The IP of the LB is named by the value of entering into the "Public IP address" field. After you created a basic load balancer and set the availability set as the backend, configure your LB. You will see the real IP address in your Azure portal. You can give any value, which just is an LB name you defined, for example, you can use balance-pip, PIP, LB-IP or others.
            – Nancy Xiong
            Nov 8 at 1:09












            Thank you, I can now see an IP
            – Martin
            Nov 8 at 11:34




            Thank you, I can now see an IP
            – Martin
            Nov 8 at 11:34












            up vote
            0
            down vote













            Taking a look at the screenshot provided there. You are on a free trial & are experimenting with the Azure Load Balancer.



            We have 2 SKU's:
            Basic
            Standard



            Since you are looking for an ELB (External/public Load Balancer) should you choose to use a standard. Then, the public IP as well as the backend VM's need to have a standard IP's.



            Thus, I would suggest the following:
            Note: Assuming that you have not exhausted the 5 free public Ip's that you get from Azure.



            Step 1: Deploy your webservers into an "Availability Set"
            Step 2: Deploy the basic SKU eternal load balancer with a public IP address
            Preferred to make it static.
            Step 3: Create load balancing rules as required over necessary ports for which your website is bound (443/80)
            - You may also choose to have a PAT done (Port Address Translation)
            - You can also test between affinity/tupples which provide sticky sessions in the order of client IP > Client IP & Protocol > Default/5tuple
            Step 4: Finally add the backend pool



            Troubleshooting further:
            Once you have reached this point, it's safe to say you have got the configuration right!
            But, check the following
            1. Check for NSG at the subnet level as well as the VM nic Level
            2. make sure you have allowed the Azure load balancer default rule
            3. Switch the probe protocol from HTTP to TCP if you application anticipates a 3-way handshake and an acknowledgment. (layer 3-4)
            4. VM with Public IPs:
            If your VM/VMs has a public IP's then keyNote the traffic outbound would take the respective public IP. Should you want the traffic to take the Load Balancer IP for SNAT. Then, kindly remove the public IP that is set on the VM/VM's.



            Effective testing:
            Browse your application by creating custom landing pages from a private window of a browser. Say ex;
            I hit VM1 - text over html header
            I hit VM2 - text over html header



            Should you have got this working, you are good to move your test workloads and applications on to these servers.



            Advanced Troubleshooting:
            - Here on the load balancer takes no blame as it's working as expected.
            - You would want to check the ports on the application servers
            - Public IP Time out: https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-tcp-idle-timeout



            Commands:
            Windows CMD:



            Netstat -ano | Findstr port#
            //replace port with the respective port number



            Linux:
            $ netstat -tulpn | grep port#
            //replace port with the respective port number



            Make sure that they are listening.




            • If you have a Linux machine. Make sure that your Ip tables are not blocking any custom ports that you may be using


            I hope this helps.



            Reference Documents:
            https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-troubleshoot
            https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-distribution-mode






            share|improve this answer

























              up vote
              0
              down vote













              Taking a look at the screenshot provided there. You are on a free trial & are experimenting with the Azure Load Balancer.



              We have 2 SKU's:
              Basic
              Standard



              Since you are looking for an ELB (External/public Load Balancer) should you choose to use a standard. Then, the public IP as well as the backend VM's need to have a standard IP's.



              Thus, I would suggest the following:
              Note: Assuming that you have not exhausted the 5 free public Ip's that you get from Azure.



              Step 1: Deploy your webservers into an "Availability Set"
              Step 2: Deploy the basic SKU eternal load balancer with a public IP address
              Preferred to make it static.
              Step 3: Create load balancing rules as required over necessary ports for which your website is bound (443/80)
              - You may also choose to have a PAT done (Port Address Translation)
              - You can also test between affinity/tupples which provide sticky sessions in the order of client IP > Client IP & Protocol > Default/5tuple
              Step 4: Finally add the backend pool



              Troubleshooting further:
              Once you have reached this point, it's safe to say you have got the configuration right!
              But, check the following
              1. Check for NSG at the subnet level as well as the VM nic Level
              2. make sure you have allowed the Azure load balancer default rule
              3. Switch the probe protocol from HTTP to TCP if you application anticipates a 3-way handshake and an acknowledgment. (layer 3-4)
              4. VM with Public IPs:
              If your VM/VMs has a public IP's then keyNote the traffic outbound would take the respective public IP. Should you want the traffic to take the Load Balancer IP for SNAT. Then, kindly remove the public IP that is set on the VM/VM's.



              Effective testing:
              Browse your application by creating custom landing pages from a private window of a browser. Say ex;
              I hit VM1 - text over html header
              I hit VM2 - text over html header



              Should you have got this working, you are good to move your test workloads and applications on to these servers.



              Advanced Troubleshooting:
              - Here on the load balancer takes no blame as it's working as expected.
              - You would want to check the ports on the application servers
              - Public IP Time out: https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-tcp-idle-timeout



              Commands:
              Windows CMD:



              Netstat -ano | Findstr port#
              //replace port with the respective port number



              Linux:
              $ netstat -tulpn | grep port#
              //replace port with the respective port number



              Make sure that they are listening.




              • If you have a Linux machine. Make sure that your Ip tables are not blocking any custom ports that you may be using


              I hope this helps.



              Reference Documents:
              https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-troubleshoot
              https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-distribution-mode






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Taking a look at the screenshot provided there. You are on a free trial & are experimenting with the Azure Load Balancer.



                We have 2 SKU's:
                Basic
                Standard



                Since you are looking for an ELB (External/public Load Balancer) should you choose to use a standard. Then, the public IP as well as the backend VM's need to have a standard IP's.



                Thus, I would suggest the following:
                Note: Assuming that you have not exhausted the 5 free public Ip's that you get from Azure.



                Step 1: Deploy your webservers into an "Availability Set"
                Step 2: Deploy the basic SKU eternal load balancer with a public IP address
                Preferred to make it static.
                Step 3: Create load balancing rules as required over necessary ports for which your website is bound (443/80)
                - You may also choose to have a PAT done (Port Address Translation)
                - You can also test between affinity/tupples which provide sticky sessions in the order of client IP > Client IP & Protocol > Default/5tuple
                Step 4: Finally add the backend pool



                Troubleshooting further:
                Once you have reached this point, it's safe to say you have got the configuration right!
                But, check the following
                1. Check for NSG at the subnet level as well as the VM nic Level
                2. make sure you have allowed the Azure load balancer default rule
                3. Switch the probe protocol from HTTP to TCP if you application anticipates a 3-way handshake and an acknowledgment. (layer 3-4)
                4. VM with Public IPs:
                If your VM/VMs has a public IP's then keyNote the traffic outbound would take the respective public IP. Should you want the traffic to take the Load Balancer IP for SNAT. Then, kindly remove the public IP that is set on the VM/VM's.



                Effective testing:
                Browse your application by creating custom landing pages from a private window of a browser. Say ex;
                I hit VM1 - text over html header
                I hit VM2 - text over html header



                Should you have got this working, you are good to move your test workloads and applications on to these servers.



                Advanced Troubleshooting:
                - Here on the load balancer takes no blame as it's working as expected.
                - You would want to check the ports on the application servers
                - Public IP Time out: https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-tcp-idle-timeout



                Commands:
                Windows CMD:



                Netstat -ano | Findstr port#
                //replace port with the respective port number



                Linux:
                $ netstat -tulpn | grep port#
                //replace port with the respective port number



                Make sure that they are listening.




                • If you have a Linux machine. Make sure that your Ip tables are not blocking any custom ports that you may be using


                I hope this helps.



                Reference Documents:
                https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-troubleshoot
                https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-distribution-mode






                share|improve this answer












                Taking a look at the screenshot provided there. You are on a free trial & are experimenting with the Azure Load Balancer.



                We have 2 SKU's:
                Basic
                Standard



                Since you are looking for an ELB (External/public Load Balancer) should you choose to use a standard. Then, the public IP as well as the backend VM's need to have a standard IP's.



                Thus, I would suggest the following:
                Note: Assuming that you have not exhausted the 5 free public Ip's that you get from Azure.



                Step 1: Deploy your webservers into an "Availability Set"
                Step 2: Deploy the basic SKU eternal load balancer with a public IP address
                Preferred to make it static.
                Step 3: Create load balancing rules as required over necessary ports for which your website is bound (443/80)
                - You may also choose to have a PAT done (Port Address Translation)
                - You can also test between affinity/tupples which provide sticky sessions in the order of client IP > Client IP & Protocol > Default/5tuple
                Step 4: Finally add the backend pool



                Troubleshooting further:
                Once you have reached this point, it's safe to say you have got the configuration right!
                But, check the following
                1. Check for NSG at the subnet level as well as the VM nic Level
                2. make sure you have allowed the Azure load balancer default rule
                3. Switch the probe protocol from HTTP to TCP if you application anticipates a 3-way handshake and an acknowledgment. (layer 3-4)
                4. VM with Public IPs:
                If your VM/VMs has a public IP's then keyNote the traffic outbound would take the respective public IP. Should you want the traffic to take the Load Balancer IP for SNAT. Then, kindly remove the public IP that is set on the VM/VM's.



                Effective testing:
                Browse your application by creating custom landing pages from a private window of a browser. Say ex;
                I hit VM1 - text over html header
                I hit VM2 - text over html header



                Should you have got this working, you are good to move your test workloads and applications on to these servers.



                Advanced Troubleshooting:
                - Here on the load balancer takes no blame as it's working as expected.
                - You would want to check the ports on the application servers
                - Public IP Time out: https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-tcp-idle-timeout



                Commands:
                Windows CMD:



                Netstat -ano | Findstr port#
                //replace port with the respective port number



                Linux:
                $ netstat -tulpn | grep port#
                //replace port with the respective port number



                Make sure that they are listening.




                • If you have a Linux machine. Make sure that your Ip tables are not blocking any custom ports that you may be using


                I hope this helps.



                Reference Documents:
                https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-troubleshoot
                https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-distribution-mode







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 11 at 8:47









                Capt. Cherry ex- MSFT

                311




                311






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53188780%2fhow-to-create-a-load-balancer-in-azure-free-trial%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    這個網誌中的熱門文章

                    Tangent Lines Diagram Along Smooth Curve

                    Yusuf al-Mu'taman ibn Hud

                    Zucchini