azurerm_search_shared_private_link_service

Manages the Shared Private Link Service for an Azure Search Service.

Example Usage

resource "azurerm_resource_group" "test" {
  name     = "example-resourceGroup"
  location = "east us"
}
resource "azurerm_search_service" "test" {
  name                = "example-search"
  resource_group_name = azurerm_resource_group.test.name
  location            = azurerm_resource_group.test.location
  sku                 = "standard"
}
resource "azurerm_storage_account" "test" {
  name                     = "xiaxintestsaforsearchspl"
  resource_group_name      = azurerm_resource_group.test.name
  location                 = azurerm_resource_group.test.location
  account_tier             = "Standard"
  account_replication_type = "LRS"
}
resource "azurerm_search_shared_private_link_service" "test" {
  name               = "example-spl"
  search_service_id  = azurerm_search_service.test.id
  subresource_name   = "blob"
  target_resource_id = azurerm_storage_account.test.id
  request_message    = "please approve"
}

Arguments Reference

The following arguments are supported:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Azure Search Shared Private Link Resource can be imported using the resource id, e.g.

terraform import azurerm_search_shared_private_link_service.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Search/searchServices/service1/sharedPrivateLinkResources/resource1