Retrieve load balancer information by using Azure Instance Metadata Service
IMDS (Azure Instance Metadata Service) provides information about currently running virtual machine instances. The service is a REST API that's available at a well-known, non-routable IP address (169.254.169.254).
When you place virtual machine or virtual machine set instances behind an Azure Standard Load Balancer, you can use IMDS to retrieve metadata related to the load balancer and the instances.
The metadata includes the following information for the virtual machines or virtual machine scale sets:
- Standard SKU public IP.
- Inbound rule configurations of the load balancer of each private IP of the network interface.
- Outbound rule configurations of the load balancer of each private IP of the network interface.
Access the load balancer metadata using IMDS
For more information on how to access the load balancer metadata, see Use Azure Instance Metadata Service to access load balancer information.
Troubleshoot common error codes
For more information on common error codes and their mitigation methods, see Troubleshoot common error codes when using IMDS.
If you're unable to retrieve a metadata response after multiple attempts, create a support issue in the Azure portal.
Learn more about Azure Instance Metadata Service