Azure APIM : Application insights doesn't find results for log query requests

David Vanden Bussche 30 Reputation points
2023-08-31T07:03:49.2133333+00:00

Hi

I have an APIM (developer) instance running which is linked to application insights.

For all apis 'application insights' is enabled

In the appInsights view , logs tab , I run a query 'Requests' ; this never returns any results (no results found response) . the time frame is not the issue, since this is set wide enough.

I also have another APIM (premium) instance, and on that instance I get the expected results running the same query.

What could be wrong with my first instance ? I don't see a difference in settings between the two.

Thanks

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

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 29,436 Reputation points Moderator
    2023-08-31T10:40:12.3233333+00:00

    Hi David Vanden Bussche Thanks for reaching out. Could you please confirm if your APIM instance is in VNET? Use the portal to check the connectivity of your APIM instance to dependencies, such as Application insights.

    In the portal, in the left-hand menu, under Deployment and infrastructure, select Network > Network status.

    User's image

    If the status is in failed state, make Sure that outbound connectivity to the telemetry endpoint is allowed from the VNet.

    please verify if the NSG for your APIM subnet has been configured as per this document.
    User's image

    Reference: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-app-insights#troubleshooting

    Feel free to reach out if any questions, I would be happy to assist you.

    0 comments No comments

Your answer

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