question

lrakai avatar image
0 Votes"
lrakai asked GitaraniSharmaMSFT-4262 commented

Azure REST API Response Results Depend on Requester's Region/IP

I have been investigating unexpected behaviour when making REST API requests to Azure APIs. To summarize, If I create a resource in Azure (A SQL Server in East US 2 in a resource group in South Central US) and then make a REST API request (https://management.azure.com/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.Sql/servers?api-version=2021-02-01-preview) from one location (Oregon) and from another region (Ohio) the response to the first request includes the new SQL Server while the request to the second request returns an empty response ({"value":[]}).

Responses from Oregon include the following header:

 x-ms-routing-request-id:    WESTUS:20210524T044715Z:<GUID>

while responses from Ohio include the

 x-ms-routing-request-id:    CANADACENTRAL:20210524T040453Z:<GUID>

It takes around 15 minutes for requests from the second region to start returning responses with the server included. This behaviour is not limited to SQL Servers, that was only one example.

Is this behaviour expected and documented somewhere or is it a bug? Is there a way avoid the 15 minute delay regardless of where the request is sent from?

azure-dnsazure-cdn
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @lrakai ,

Apologies for the delay in response.

This issue requires deeper investigation as you are seeing this behavior with Azure resources apart from SQL servers, so if you have a support plan, I request you file a support ticket, else please do let us know, we will try and help you get a one-time free technical support.

Thanks,
Gita

0 Votes 0 ·

Hello @lrakai , any updates on this post?

0 Votes 0 ·

0 Answers