az search query-key
Manage Azure Search query keys.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az search query-key create |
Generates a new query key for the specified search service. |
Core | GA |
| az search query-key delete |
Deletes the specified query key. |
Core | GA |
| az search query-key list |
Returns the list of query API keys for the given Azure Cognitive Search service. |
Core | GA |
az search query-key create
Generates a new query key for the specified search service.
You can create up to 50 query keys per service.
az search query-key create --name
--resource-group
--service-name
[--acquire-policy-token]
[--change-reference]
Required Parameters
The name of the query key.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
The name of the search service.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az search query-key delete
Deletes the specified query key.
Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it.
az search query-key delete --key-value
--resource-group
--service-name
[--acquire-policy-token]
[--change-reference]
Required Parameters
The value of the query key.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
The name of the search service.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az search query-key list
Returns the list of query API keys for the given Azure Cognitive Search service.
az search query-key list --resource-group
--service-name
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
The name of the search service.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |