Can't add azure openAI credentials
# support
j
Copy code
{
  "message": "Couldn't Validate Azure OpenAI Credential. Error: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.",
  "error": "Bad Request",
  "statusCode": 400
}
I've tried Key 1 & key 2 for the API key Any idea why I'm getting the error? https://cdn.discordapp.com/attachments/1247920845423251579/1247920845880561756/endpoint.png?ex=6661c85a&is=666076da&hm=ad11b7dde0e2d3e5d2997af63f975a2c2942ecbe6c2d6e1ad3ad9ce37e30d81e&
v
Hi @Jotham, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Call Ended Reason]() * [Update Credential]() * [Create Credential]() * [Get Call]() -----------------------------
### Answer The error message you're encountering suggests that the issue lies with the Azure OpenAI credentials you are using. Here are a few steps you should verify: 1. **Subscription Key Validity**: Ensure that the subscription key you are using is still active and hasn't expired. 2. **Correct API Key**: Double-check that the API key(s) you have used (Key 1 and Key 2) are correctly input without any typographical errors. 3. **Proper Endpoint**: Make sure you are using the correct regional API endpoint that corresponds to your Azure OpenAI service. Since the response indicates "Access denied due to invalid subscription key or wrong API endpoint," it's crucial to verify that both the key and endpoint are accurately configured for your requests. If after these checks the issue persists, consider regenerating a new API key from the Azure portal and ensure that all API requests are aligned with Azure's expected parameters and authentication methods.
Got it. Tagging @User for additional help.
v
message has been deleted
@Jotham It seems like there might be an issue with the subscription key or the API endpoint you are using for the Azure OpenAI service. Here are a few steps you can take to troubleshoot this issue: 1. **Check the Subscription Key**: Make sure that you are using the correct subscription key. You should verify that the key you are using matches exactly with the one provided in your Azure portal, without any extra spaces or characters. 2. **API Endpoint**: Ensure that you are using the correct regional API endpoint that corresponds to your Azure OpenAI service. The endpoint should match the region in which you've deployed your OpenAI resource. 3. **Active Subscription**: Confirm that your Azure subscription is active and not expired or disabled. You can check this in the Azure portal under the subscription settings. 4. **Service Status**: Check the Azure Service Health to ensure that there are no ongoing issues with the OpenAI service in your region. 5. **Permissions**: If you are using a service principal or a managed identity, ensure that it has the correct permissions to access the OpenAI resource. 6. **Key Rotation**: If you have recently regenerated the keys in the Azure portal, make sure you are not using an old key that has been invalidated. If you've checked all the above and are still facing issues, you may need to reach out to Azure support for further assistance. They can provide more detailed insights into your specific situation.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
Can you send a manual response once directly through cURL or Postman? @Jotham
j
Yeah I'm getting the same error. I'm into azure support now. Azure's UX is garbage 😂
5 Views