Instance Metadata Service includes support for zones and virtual machine scale sets
Veröffentlichungsdatum: 14 März, 2018
The 2017-12-01 version of Azure Instance Metadata Service is now available in global Azure regions.
This version has additional data about Availability Zones and virtual machine scale sets. With this update, applications can now know the Azure Availability Zones that the virtual machine is in. Your applications can use this data for replica placement and other high-availability configurations. In addition, if your instances are in a virtual machine scale set, your applications can now find the name of the scale set to fully construct the resource URL.
Try it now by calling curl -H Metadata:true "https://169.254.169.254/metadata/instance?api-version=2017-12-01" from your virtual machine.
To learn more, see the latest documentation about the service.