Azure APIM diagnostic logs to different Application Insights

Dev S 91 Reputation points
2023-01-11T19:20:29.46+00:00

If we have an Azure APIM Premium SKU instance with two locations A and B, is it possible to configure each gateway location to use a different application insights location?

Let's say we have two instances of Application Insights, also located in A and B. From my understanding, App Insights is always local to a region, so when using the Premium SKU, if the primary region A is completely down, how can we make sure the APIM Gateway in region B, which is still able to process requests by forwarding them to redundant backend function/logic Apps in region B, continue to log to it's local regional App Insights instance? Although we can add multiple app insights instances to an APIM instance, can we use policy.xml or something else to also specify which app insights location an APIM gateway location should use?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,463 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 29,276 Reputation points
    2023-01-13T18:09:57.69+00:00

    Hi Dev S Thanks for reaching out. It's not possible to configure each gateway location to use a different application insights. App Insights and other diagnostic configuration is stored/retrieved via "Management Plane" component of APIM, which is only hosted in Primary region. In fact, if Primary region has a complete outage, you won't be able to change any configuration in your API Management service since management plane won't be available.

    User's image

    Do let me know if you have any queries.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.