Terraform throwing “Provider configuration not present” error when provider is already included
I created an Azure AI Search resource within the module az-search
, which works. Now within az-search/main.tf
, I am attempting to connect it to a virtual network and subnet, and create a private network for the Azure AI Search resource. So I am creating resources for azurerm_subnet
, azurerm_private_endpoint
, and azurerm_virtual_network
.
How do I get an API key from an Azure AI Search service created in Terraform in order to use it in another resource?
I am following this guide in order to create Azure AI Search indexes, indexers, and datasources: https://medium.com/expert-thinking/mastering-azure-search-with-terraform-a-how-to-guide-7edc3a6b1ee3