I’ve been following this guide (https://learn.microsoft.com/en-us/azure/search/service-create-private-endpoint) in order to create a private endpoint, virtual network, and subnet.
Now that I’ve done those steps, I do not want to do this step to create a virtual machine because I want to be able to access my Azure AI Search resource through my terraform code. What I figured the first step is, is to test out if I am able to access it through a REST call. That is what I am following here: Setup Visual Studio Code. And below is what I have in my code taken directly from the guide:
@baseUrl = sample-search-service.search.windows.net
@apiKey = somekeyhere
### List existing indexes by name
GET {{baseUrl}}/indexes?api-version=2023-11-01&$select=name HTTP/1.1
Content-Type: application/json
api-key: {{apiKey}}
Above returns the getaddrinfo ENOTFOUND
error, but not when my search service allows public network access. This makes sense, but I have no clue what other steps are needed to access my search service when only private network access is allowed and I have a private endpoint set up already.