Manages a Search Service.
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
data "azurerm_search_service" "example" {
name = "example-search-service"
resource_group_name = azurerm_resource_group.example.name
}
The following arguments are supported:
name
- (Required) The Name of the Search Service.
resource_group_name
- (Required) The name of the Resource Group where the Search Service exists.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Search Service.
primary_key
- The Primary Key used for Search Service Administration.
secondary_key
- The Secondary Key used for Search Service Administration.
query_keys
- A query_keys
block as defined below.
public_network_access_enabled
- Whether or not public network access is enabled for this resource.
partition_count
- The number of partitions which have been created.
replica_count
- The number of replica's which have been created.
identity
- An identity
block as defined below.
An identity
block exports the following:
principal_id
- The Principal ID associated with this Managed Service Identity.
tenant_id
- The Tenant ID associated with this Managed Service Identity.
type
- The identity type of this Managed Service Identity.
A query_keys
block exports the following:
key
- The value of this Query Key.
name
- The name of this Query Key.
A identity
block exports the following:
principal_id
- The (Client) ID of the Service Principal.
tenant_id
- The ID of the Tenant the Service Principal is assigned in.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Search Service.