Azure / azure-cli

Azure Command-Line Interface
MIT License
3.95k stars 2.93k forks source link

az cosmosdb create " location" issue #28330

Open lhcxx opened 6 months ago

lhcxx commented 6 months ago

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 2

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

azure-client-tools-bot-prd[bot] commented 6 months ago

Hi @lhcxx,

2.56.0 is not the latest Azure CLI(2.57.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

yonzhan commented 6 months ago

Thank you for opening this issue, we will look into it.

lhcxx commented 6 months ago

any update here?

lhcxx commented 6 months ago

@yonzhan

lhcxx commented 6 months ago

any update here?

lhcxx commented 6 months ago

any update here?

lhcxx commented 4 months ago

any update