Logic apps - Submit a Security Copilot prompt

Sriram Prabhakara Rao 0 Reputation points
2025-05-05T03:06:37.99+00:00

Unable to use copilot prompt in logic app. Used oauth and also tried managed identity but always running into bad gateway error

{ "error": { "code": 500, "source": "logic-apis-northcentralus.azure-apim.net", "clientRequestId": "e15b12b6-b68e-4a54-9270-416371ab2e4f", "message": "BadGateway", "innerError": { "status": 0, "errors": [ "Module: SessionsProvider, Method: CreateSessionAsync, Operation: Error encountered during initial Security Copilot session creation request \n Exception: Operation returned an invalid status code 'InternalServerError', SecurityCopilotResponseContent: , SecurityCopilotStatusCode: InternalServerError" ], "debugInfo": "clientRequestId: e15b12b6-b68e-4a54-9270-416371ab2e4f" } } }

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,488 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shireesha Eeraboina 2,855 Reputation points Microsoft External Staff Moderator
    2025-05-07T02:41:10.4666667+00:00

    Hi Sriram Prabhakara Rao,

    It seems like you are encountering a "BadGateway" error with a code 500 when trying to use the Security Copilot prompt in a Logic App. This error indicates that there was an issue with the initial Security Copilot session creation request. The error message suggests that the operation returned an invalid status code 'InternalServerError'.

    • Ensure that your authentication settings, whether using OAuth or managed identity, are correctly configured and have the necessary permissions to access the Security Copilot service.
    • Double-check the endpoint URL you are using to connect to the Security Copilot service. Make sure it is correct and accessible.
    • Refer to the Security Copilot documentation or contact the service provider to understand any specific requirements or configurations needed for integrating with Logic Apps.

    To help you better understand, kindly refer to the documentations below:

    I hope this addresses your query. Please let me know if you need any further assistance or clarification.

    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.