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:
- Microsoft Security Copilot Logic Apps Connector
- Microsoft Security Copilot - Copilot Studio connector
- Submit a Copilot for Security prompt
I hope this addresses your query. Please let me know if you need any further assistance or clarification.