github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/azurerm/r/search_service.html.markdown (about)

     1  ---
     2  layout: "azurerm"
     3  page_title: "Azure Resource Manager: azurerm_search_service"
     4  sidebar_current: "docs-azurerm-resource-search-service"
     5  description: |-
     6    Manage a Search Service.
     7  ---
     8  
     9  # azurerm\_search\_service
    10  
    11  Allows you to manage an Azure Search Service
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "azurerm_resource_group" "test" {
    17    name     = "acceptanceTestResourceGroup1"
    18    location = "West US"
    19  }
    20  
    21  resource "azurerm_search_service" "test" {
    22    name                = "acceptanceTestSearchService1"
    23    resource_group_name = "${azurerm_resource_group.test.name}"
    24    location            = "West US"
    25    sku                 = "standard"
    26  
    27    tags {
    28      environment = "staging"
    29      database    = "test"
    30    }
    31  }
    32  ```
    33  ## Argument Reference
    34  
    35  The following arguments are supported:
    36  
    37  * `name` - (Required) The name of the Search Service.
    38  
    39  * `resource_group_name` - (Required) The name of the resource group in which to
    40      create the Search Service.
    41  
    42  * `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    43  
    44  * `sku` - (Required) Valid values are `free` and `standard`. `standard2` is also valid, but can only be used when it's enabled on the backend by Microsoft support. `free` provisions the service in shared clusters. `standard` provisions the service in dedicated clusters
    45  
    46  * `replica_count` - (Optional) Default is 1. Valid values include 1 through 12. Valid only when `sku` is `standard`.
    47  
    48  * `partition_count` - (Optional) Default is 1. Valid values include 1, 2, 3, 4, 6, or 12. Valid only when `sku` is `standard`.
    49  
    50  * `tags` - (Optional) A mapping of tags to assign to the resource.
    51  
    52  ## Attributes Reference
    53  
    54  The following attributes are exported:
    55  
    56  * `id` - The Search Service ID.