I am trying use terraform to create an Azure AI Search service, then create a CosmosDB for MongoDB service which will only be accessible to certain IP addresses.
In order to create an Azure Search Indexer (after I’ve created my datasource and index), I need to whitelist its IP address. What is one way that I can get that address?
When I try to use Postman in order to create an indexer, I just get a 403 error message saying Error with data source: Response status code does not indicate success: Forbidden (403)... Reason: (Request originated from IP _._._._ through public internet. This is blocked by your Cosmos DB account firewall settings.
However, when doing commands like nslookup example.search.windows.net
or ping example.search.windows.net
or nslookup example.search.windows.net/indexers
I do not get the same IP address. How do I get the address specified in the error message so that I can whitelist it in Cosmos?