Azure / Azure/azure-cli

az cosmosdb create " location" issue

Open
#28,330 7 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Auto-Assign Auto-Resolve bug CosmosDB Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

az cosmosdb create --name $accountName --resource-group $resourceGroupName --kind GlobalDocumentDB --locations regionName="mexicocentral" --capabilities EnableTable

I can successfully create the cosmosdb with Read Locations and Write Locations all point to mexicocentral, but for the location in the portal is always set to "East US" (I think it is the default value), and I did not find where I can set this value
![1](https://github.com/Azure/azure-cli/assets/1281336/dc84f4f1-6daf-40f2-9918-0e42f4194e67)
![2](https://github.com/Azure/azure-cli/assets/1281336/ab280f94-a4c1-4746-a9ca-dcc57425e3f2)

### Related command

az cosmosdb create

### Errors

no parameter to set the location value

### Issue script & Debug output

N/A

### Expected behavior

set the right location value

### Environment Summary

azure-cli 2.56.0 *

### Additional context

_No response_

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.