Logic App - Internal Server Error for HTTP request

Hrabec Pavel 0 Reputation points
2024-04-22T10:52:35.3133333+00:00

Hello,

I'm working on a logic app integration with Microsoft Defender for Vulnerability. I use HTTP request to authenticate with Microsoft Defender API.

https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/api/exposed-apis-list?view=o365-worldwide

The integration was working fine (for texting purposes I have generated token with Powershell and use it inside Logic APP).

Everything was setup correctly and I got the results I was looking fine.

HTTP Working

Next week I try the same integration and I'm getting an error.

InternalServerError. Encountered internal server error. The tracking Id is '3ff6f587-9106-4831-87d6-d82a5bdfa892'.

Error

I have tried the same integration in different tenant facing the same issue. My setup works with an application inside Microsoft Entra ID with necessary privileges assigned. After that token is generated for authentication.

HTTP request

Any idea what could cause the issue?

Thank you in advance for any suggestions.

Pavel

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
3,941 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,895 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sonny Gillissen 3,346 Reputation points
    2024-05-10T13:18:24.8133333+00:00

    Hi Hrabec Pavel,

    Thank you for reaching out on Microsoft Q&A!

    What if you change the URL to below:

    https://api.security.microsoft.com/api/Software

    Does it work then? If so, I believe it has to do with load balancing. You're referring to api-us3 which is one of the endpoints, but as soon as your workloads are moved to another server this URL simply doesn't know your request anymore and therefor fails.

    If, for performance reasons, you may need a server close to you (I assume this is US), then you can use the endpoint below:

    https://us.api.security.microsoft.com/api/Software

    Please click “Accept answer” if you find this helpful. Feel free to drop additional queries in the comments below!

    Kind regards,

    Sonny

    0 comments No comments