Getting Internal Server error while using "HTTP with EntraId" Connector in Power Automate Flow

Rishabh Gambhir (Capgemini America Inc) 0 Reputation points Microsoft Vendor
2024-07-02T09:23:27.9333333+00:00

Hi Team,

We are using 'HTTP with EntraID' connector in Power Automate flow to call OpenAI service but getting 'internal server error' with a tracking id.
We first generated Access Tokens using a PowerShell command and then used the token in Connector header.image (2)

image (3)

We want to connect to OpenAI using entraID only not with Service principal and API keys.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,642 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,645 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,623 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 43,696 Reputation points Microsoft Employee
    2024-07-02T14:39:39.8166667+00:00

    @Rishabh Gambhir (Capgemini America Inc) Did you try to check if the REST API request using Entra ID works directly with OpenAI service? I believe a custom subdomain is required as per pre-reqs.

    If it works directly and fails with the connector in power automate then probably the error might be from power automate flow and the tracking id needs to be looked up to check for more details.

    REST API reference for OpenAI which mentions to use Authorization header with bearer token. Thanks!!

    0 comments No comments