The Azure REST API for Availability Sets does not show the references for virtual machines in the Availability Set

When you make a GET rest to the Azure Availability Sets REST API you may notice that the virtual machines that are in the availability set are not shown.
https://learn.microsoft.com/rest/api/compute/availability-sets/get


For example:

https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/availabilitySets?api-version=2023-09-01


For these to be visible you must expand them using the following:

https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/availabilitySets?$expand=virtualMachines/$ref&api-version=2023-09-01




Comments

Popular posts from this blog

Windows Server 2016, 2019, 2022, Windows 10 and Windows 11: Date and time "Some settings are managed by your organization".

TFTPD32 or TFTPD64 reports Bind error 10013 An attempt was made to access a socket in a way forbidden by its access permissions.

Enable function lock for F1-F12 on HP ZBook mobile workstations