您现在访问的是微软AZURE全睃版技术文档网站,若需覝访问由世纪互蝔违蝥的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

Microsoft.Search searchServices 2015-02-28

The searchServices resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.Search/searchServices resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Search/searchServices@2015-02-28' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    partitionCount: int
    replicaCount: int
    sku: {
      name: 'string'
    }
  }
}

Property values

searchServices

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Search/searchServices'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2015-02-28'
name The resource name string (required)
location The geographic location of the Search service. string
tags Tags to help categorize the Search service in the Azure Portal. Dictionary of tag names and values. See Tags in templates
properties Defines properties of an Azure Search service that can be modified. SearchServiceProperties

SearchServiceProperties

Name Description Value
partitionCount The number of partitions in the Search service; if specified, it can be 1, 2, 3, 4, 6, or 12. int
replicaCount The number of replicas in the Search service. If specified, it must be a value between 1 and 6 inclusive. int
sku Defines the SKU of an Azure Search Service, which determines price tier and capacity limits. Sku

Sku

Name Description Value
name The SKU of the Search service. 'free'
'standard'
'standard2'

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Web App with a SQL Database, Azure Cosmos DB, Azure Search

Deploy to Azure
This template provisions a Web App, a SQL Database, Azure Cosmos DB, Azure Search and Application Insights.
Azure Cognitive Search service

Deploy to Azure
This template creates an Azure Cognitive Search service