Manage health probes for Azure Load Balancer using the Azure portal
Azure Load Balancer uses health probes to monitor the health of backend instances. In this article, you'll learn how to manage health probes for Azure Load Balancer.
There are three types of health probes:
Standard SKU | Basic SKU | |
---|---|---|
Probe types | TCP, HTTP, HTTPS | TCP, HTTP |
Probe down behavior | All probes down, all TCP flows continue. | All probes down, all TCP flows expire. |
Health probes have the following properties:
Health Probe configuration | Details |
---|---|
Name | Name of the health probe. This is a name you get to define for your health probe |
Protocol | Protocol of health probe. This is the protocol type you would like the health probe to leverage. Available options are: TCP, HTTP, HTTPS |
Port | Port of the health probe. The destination port you would like the health probe to use when it connects to the virtual machine to check the virtual machine's health status. You must ensure that the virtual machine is also listening on this port (that is, the port is open). |
Interval (seconds) | Interval of health probe. The amount of time (in seconds) between consecutive health check attempts to the virtual machine |
Used by | The list of load balancer rules using this specific health probe. You should have at least one rule using the health probe for it to be effective |
Path | The URI used for requesting health status from the virtual machine instance by the health probe (only applicable for HTTP(s) probes). |
Important
Load Balancer health probes originate from the IP address 168.63.129.16 and must not be blocked for probes to mark your instance as up. To see this probe traffic within your backend instance, review the Azure Load Balancer FAQ.
Regardless of configured time-out threshold, HTTP(S) load balancer health probes will automatically mark the instance as down if the server returns any status code that isn't HTTP 200 OK or if the connection is terminated via TCP reset.
Prerequisites
An Azure account with an active subscription. Create an account for free.
A standard public load balancer in your subscription. For more information on creating an Azure Load Balancer, see Quickstart: Create a public load balancer to load balance VMs using the Azure portal. The load balancer name for the examples in this article is myLoadBalancer.
TCP health probe
In this section, you'll learn how to add and remove a TCP health probe. A public load balancer is used in the examples.
Add a TCP health probe
In this example, you'll create a TCP health probe to monitor port 80.
Sign in to the Azure portal.
In the search box at the top of the portal, enter Load balancer. Select Load balancers in the search results.
Select myLoadBalancer or your load balancer.
In the load balancer page, select Health probes in Settings.
Select + Add in Health probes to add a probe.
Enter or select the following information in Add health probe.
Setting Value Name Enter myHealthProbe. Protocol Select TCP. Port Enter the TCP port you wish to monitor. For this example, it's port 80. Interval Enter an interval between probe checks. For this example, it's the default of 5. Select Add.
Remove a TCP health probe
In this example, you'll remove a TCP health probe.
Sign in to the Azure portal.
In the search box at the top of the portal, enter Load balancer. Select Load balancers in the search results.
Select myLoadBalancer or your load balancer.
In the load balancer page, select Health probes in Settings.
Select the three dots next to the rule you want to remove.
Select Delete.
HTTP health probe
In this section, you'll learn how to add and remove an HTTP health probe. A public load balancer is used in the examples.
Add an HTTP health probe
In this example, you'll create an HTTP health probe.
Sign in to the Azure portal.
In the search box at the top of the portal, enter Load balancer. Select Load balancers in the search results.
Select myLoadBalancer or your load balancer.
In the load balancer page, select Health probes in Settings.
Select + Add in Health probes to add a probe.
Enter or select the following information in Add health probe.
Setting Value Name Enter myHealthProbe. Protocol Select HTTP. Port Enter the TCP port you wish to monitor. For this example, it's port 80. Path Enter a URI used for requesting health status. For this example, it's /. Interval Enter an interval between probe checks. For this example, it's the default of 5. Select Add.
Remove an HTTP health probe
In this example, you'll remove an HTTP health probe.
Sign in to the Azure portal.
In the search box at the top of the portal, enter Load balancer. Select Load balancers in the search results.
Select myLoadBalancer or your load balancer.
In the load balancer page, select Health probes in Settings.
Select the three dots next to the rule you want to remove.
Select Delete.
HTTPS health probe
In this section, you'll learn how to add and remove an HTTPS health probe. A public load balancer is used in the examples.
Add an HTTPS health probe
In this example, you'll create an HTTPS health probe.
Sign in to the Azure portal.
In the search box at the top of the portal, enter Load balancer. Select Load balancers in the search results.
Select myLoadBalancer or your load balancer.
In the load balancer page, select Health probes in Settings.
Select + Add in Health probes to add a probe.
Enter or select the following information in Add health probe.
Setting Value Name Enter myHealthProbe. Protocol Select HTTPS. Port Enter the TCP port you wish to monitor. For this example, it's port 443. Path Enter a URI used for requesting health status. For this example, it's /. Interval Enter an interval between probe checks. For this example, it's the default of 5. Select Add.
Remove an HTTPS health probe
In this example, you'll remove an HTTPS health probe.
Sign in to the Azure portal.
In the search box at the top of the portal, enter Load balancer. Select Load balancers in the search results.
Select myLoadBalancer or your load balancer.
In the load balancer page, select Health probes in Settings.
Select the three dots next to the rule you want to remove.
Select Delete.
Next steps
In this article, you learned how to manage health probes for an Azure Load Balancer.
For more information about Azure Load Balancer, see:
प्रतिक्रिया
https://aka.ms/ContentUserFeedback.
जल्द आ रहा है: 2024 के दौरान हम सामग्री के लिए फीडबैक तंत्र के रूप में GitHub मुद्दों को चरणबद्ध तरीके से समाप्त कर देंगे और इसे एक नई फीडबैक प्रणाली से बदल देंगे. अधिक जानकारी के लिए, देखें:के लिए प्रतिक्रिया सबमिट करें और देखें