correct-apricot•17mo ago
Can't add azure openAI credentials
I've tried Key 1 & key 2 for the API key
Any idea why I'm getting the error?

5 Replies
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 @Vapi Team for additional help.
Relevant threads
These are relevant threads you might take a look into:
<#1247607481199497327>
@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 @Vapi Team for additional help.
equal-jade•17mo ago
Can you send a manual response once directly through cURL or Postman? @Jotham
correct-apricotOP•17mo ago
Yeah I'm getting the same error. I'm into azure support now.
Azure's UX is garbage 😂