azurerm_search_service
Allows you to manage an Azure Search Service
Example Usage
resource "azurerm_resource_group" "test" {
name = "acceptanceTestResourceGroup1"
location = "West US"
}
resource "azurerm_search_service" "test" {
name = "acceptanceTestSearchService1"
resource_group_name = "${azurerm_resource_group.test.name}"
location = "West US"
sku = "standard"
tags {
environment = "staging"
database = "test"
}
}
Argument Reference
The following arguments are supported:
-
name- (Required) The name of the Search Service. -
resource_group_name- (Required) The name of the resource group in which to create the Search Service. -
location- (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. -
sku- (Required) Valid values arefreeandstandard.standard2is also valid, but can only be used when it’s enabled on the backend by Microsoft support.freeprovisions the service in shared clusters.standardprovisions the service in dedicated clusters -
replica_count- (Optional) Default is 1. Valid values include 1 through 12. Valid only whenskuisstandard. -
partition_count- (Optional) Default is 1. Valid values include 1, 2, 3, 4, 6, or 12. Valid only whenskuisstandard. -
tags- (Optional) A mapping of tags to assign to the resource.
Attributes Reference
The following attributes are exported:
id- The Search Service ID.
See the source of this document at Terraform.io