az search service

Manage Azure Search services.

Commands

az search service create

Creates a Search service in the given resource group.

az search service delete

Deletes a Search service in the given resource group, along with its associated resources.

az search service list

Gets a list of all Search services in the given resource group.

az search service show

Gets the Search service with the given name in the given resource group.

az search service update

Update partition and replica of the given search service.

az search service create

Creates a Search service in the given resource group.

az search service create --name
                         --resource-group
                         --sku
                         [--location]
                         [--partition-count]
                         [--replica-count]
                         [--subscription]

Required Parameters

--name -n

The name of the search service.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--sku

The SKU of the search service, which determines price tier and capacity limits.

Optional Parameters

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--partition-count

Number of partitions in the search service.

--replica-count

Number of replicas in the search service.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az search service delete

Deletes a Search service in the given resource group, along with its associated resources.

az search service delete --name
                         --resource-group
                         [--subscription]
                         [--yes]

Required Parameters

--name -n

The name of the search service.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--yes -y

Do not prompt for confirmation.

az search service list

Gets a list of all Search services in the given resource group.

az search service list --resource-group
                       [--query-examples]
                       [--subscription]

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az search service show

Gets the Search service with the given name in the given resource group.

az search service show --name
                       --resource-group
                       [--query-examples]
                       [--subscription]

Required Parameters

--name -n

The name of the search service.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az search service update

Update partition and replica of the given search service.

az search service update --name
                         --resource-group
                         [--add]
                         [--force-string]
                         [--partition-count]
                         [--remove]
                         [--replica-count]
                         [--set]
                         [--subscription]

Required Parameters

--name -n

The name of the search service.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--partition-count

Number of partitions in the search service.

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--replica-count

Number of replicas in the search service.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.