Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
- Use the latest API version for your request.
Important
This example bypasses proxies. You must bypass proxies when querying IMDS. For more information, see Proxies.
Data | Description | Version introduced |
---|---|---|
publicIpAddresses |
The instance level Public or Private IP of the specific Virtual Machine instance | 2020-10-01 |
inboundRules |
List of load balancing rules or inbound NAT rules using which the Load Balancer directs traffic to the specific Virtual Machine instance. Frontend IP addresses and the Private IP addresses listed here belong to the Load Balancer. | 2020-10-01 |
outboundRules |
List of outbound rules by which the Virtual Machine behind Load Balancer sends outbound traffic. Frontend IP addresses and the Private IP addresses listed here belong to the Load Balancer. | 2020-10-01 |
curl -H "Metadata:true" --noproxy "*" "http://169.254.169.254:80/metadata/loadbalancer?api-version=2020-10-01"
{
"loadbalancer": {
"publicIpAddresses":[
{
"frontendIpAddress":"51.0.0.1",
"privateIpAddress":"10.1.0.4"
}
],
"inboundRules":[
{
"frontendIpAddress":"50.0.0.1",
"protocol":"tcp",
"frontendPort":80,
"backendPort":443,
"privateIpAddress":"10.1.0.4"
},
{
"frontendIpAddress":"2603:10e1:100:2::1:1",
"protocol":"tcp",
"frontendPort":80,
"backendPort":443,
"privateIpAddress":"ace:cab:deca:deed::1"
}
],
"outboundRules":[
{
"frontendIpAddress":"50.0.0.1",
"privateIpAddress":"10.1.0.4"
},
{
"frotendIpAddress":"2603:10e1:100:2::1:1",
"privateIpAddress":"ace:cab:deca:deed::1"
}
]
}
}
Common error codes and troubleshooting steps
Learn more about Azure Instance Metadata Service