How to invoke Azure AI resources on an ER-connected internal network

HyeonJung Park 45 Reputation points
2024-12-26T04:28:07.36+00:00

Hello, I'm currently an internal network PC user connected to Azure ER.

I'm using vscode for development Invoking azure resources by modifying the window's host file.

It is possible to call the index list of aisearch via postman, but An ssl error is occurring when calling via vscode.

requests.exceptions.SSLError: HTTPSConnectionPool(host='my search resource', port=443): Max retries exceeded with url: /indexes/my-index/docs/search?api-version=2024-05-01-preview (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')))

Is there any way we can solve it?

Thank you.

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,119 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,002 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Azar 24,600 Reputation points MVP
    2024-12-26T15:10:36.6366667+00:00

    Hi there HyeonJung Park

    Thanks for using QandA platform

    Might be bcoz of missing certificate authorities. check the certificate for your Azure AI resource is valid and properly configured. If you're using a custom root certificate, import it into your system's trusted root certificate store. For Windows, you can use the Certificate Manager, and for Linux, add it to the appropriate trusted CA directory. Temporarily, you can bypass SSL verification in your development code by disabling certificate validation]

    If this helps kindly accept the answer thanks much.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.