Azure / Azure/azure-cli

Cosmos db - How to set diagnostic full-text query using Azure CLI

Open
#24,158 3 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Auto-Assign CosmosDB customer-reported feature-request Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

## Azure CLI equivalent
![image](https://user-images.githubusercontent.com/20245330/195133550-dd1c4e03-c4ff-4bb4-a0b7-206f334c264e.png)

**Related command**

```powershell
# The az cosmosdb update command documentation does not provide all the capabilities
az cosmosdb update --help
```
The online documentation on the Azure CLI command `az cosmosdb update` does not list the options either
https://learn.microsoft.com/en-us/cli/azure/cosmosdb?view=azure-cli-latest#az-cosmosdb-update

```powershell
#The show command does not list the name of the capability which corresponds to the "Diagnostic full-text query" setting on the portal
az cosmosdb show --name "COSMOS ACCOUNT NAME" --resource-group "RESOURCE GROUP NAME"

```
## Sample output from az cosmosdb show
![image](https://user-images.githubusercontent.com/20245330/195134288-f82f667c-a9af-48b8-acc7-da529a4eed05.png)

**Is your feature request related to a problem? Please describe.**
I am unable to find the right Azure CLI option which will help me accomplish via scripting that is already possibile via the portal.
T

**Describe the solution you'd like**
Please list down all the optins that are acceptable by the `--capabilities` parameter of teh `az cosmosdb update` command

**Describe alternatives you've considered**
I have considered Azure REST API. But, did not get much help there either.
https://learn.microsoft.com/en-us/cli/azure/cosmosdb?view=azure-cli-latest#az-cosmosdb-update

![image](https://user-images.githubusercontent.com/20245330/195136541-bb6495fd-d829-4f80-a9cf-2cc4bcf89bcc.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.