azureazure-resource-managerazure-rest-apiazure-resource-graphazure-regions

Is there a REST API call to retrieve regions that are zero-waste certified on Azure?


If you go to this website https://datacenters.microsoft.com/globe/explore and you click on "region filters" and "sustainability filters" and you select "zero-waste certified" you can view the regions that are zero-waste certified.

I'd like to make a simple console app with C#.Net to retrieve these zero-waste regions. Because this website does it, I'm assuming it can be done with a REST API call? I've tried to look at the calls the website make itself, but I couldn't really figure it out. Azure.ResourceManager (the new nuget package because the other packages are deprecated) doesn't have zero-waste certified anywhere in it's metadata or whatever.

So, does anyone know how to retrieve this information from Azure in C#.Net? A call to a REST API is fine (via a SDK is even better). Thank you in advance.


Solution

  • The webpage makes a call to the https://datacenters.microsoft.com/globe/data/geo/regions.json endpoint which returns all the regions and their datacenters, including a property with a collection of sustainabilityIds. I suspect that this is what is used to client side filter the list.