Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I see you have VNET Integrated an App Service and from this App Service, you are trying to connect to Private EndPoint of OpenAi service, which is in the same VNET.
I believe the error because you are using "xxxxxxsxsvasucvacxzxxxx.privatelink.openai.azure.com" instead of "xxxxxxsxsvasucvacxzxxxx.openai.azure.com"
- You should always use the hostname without the privatelink in it.
- The "privatelink" part of the hostname is something handled by default by Azure platform and you should not use them while defining endpoints within the code.
Can you update the endpoint as just "xxxxxxsxsvasucvacxzxxxx.openai.azure.com" and let us know how it goes?
In case that didn't help,
- Was this a new set up? Or you have a dev/lower environment where this is working
- Was this working with Public endpoint before you tried to use Private EndPoint
- Or is it the case you never tried with public access and directly tried to use PE?
- Is there a VM in the same VNET where you can replicate the call?
- So that we can isolate that the App Service is not the culprit.
Cheers,
Kapil