question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az cosmosdb create errors with DB names greater than 36 characters

See original GitHub issue

Description

Outline the issue here:

STR:

  • create a cosmosdb instance with a DB name greater than 36 characters

EXPECTED:

  • The CLI says CosmosDB names can be between 3 and 50 characters, so I’d expect this to work

ACTUAL:

  • Errors with “DatabaseAccount name must be at least 3 characters and at most 50characters”

Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: pip

CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here:

azure-cli (2.0.14)

acr (2.0.10)
acs (2.0.13)
appservice (0.1.13)
batch (3.1.1)
billing (0.1.3)
cdn (0.0.6)
cloud (2.0.7)
cognitiveservices (0.1.6)
command-modules-nspkg (2.0.1)
component (2.0.7)
configure (2.0.10)
consumption (0.1.3)
container (0.1.8)
core (2.0.13)
cosmosdb (0.1.11)
dla (0.0.10)
dls (0.0.12)
eventgrid (0.1.2)
feedback (2.0.6)
find (0.2.6)
interactive (0.3.7)
iot (0.1.10)
keyvault (2.0.8)
lab (0.0.9)
monitor (0.0.8)
network (2.0.12)
nspkg (3.0.1)
profile (2.0.10)
rdbms (0.0.5)
redis (0.2.7)
resource (2.0.12)
role (2.0.10)
sf (1.0.6)
sql (2.0.9)
storage (2.0.12)
vm (2.0.12)

Python (Darwin) 2.7.13 (default, Aug 18 2017, 10:14:30) 
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)]

Python location '/Users/seknox/lib/azure-cli/bin/python'


OS Version: What OS and version are you using?
Answer here: MacOS Sierra

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: zsh

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
moderakhcommented, Sep 21, 2017

This is account management API which Digvijay owns it. @tjprescott please assign this to Digvijay.

0reactions
shurdcommented, Sep 30, 2019

Hi everyone. The change has been deployed and you can now create accounts with global database account name length of 44 and region ids of up to 63 characters.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot common errors in Azure Cosmos DB's API for ...
Code Error Description 13 Unauthorized The request lacks the permissions to complete. 67 CannotCreateIndex The request to create an index can't be completed. 115 CommandNotSupported The...
Read more >
Increasing or Decreasing Scale for Azure Cosmos DB
We look at increasing or decreasing scale for Azure Cosmos DB with PowerShell or with the Portal.
Read more >
Not able to get count of documents from cosmos using ...
According to my test, if you want to call Azure Cosmos DB rest api with PowerShell, please refer to the following script
Read more >
Introduction to Azure Cosmos DB | Microsoft Docs
az login. Add the Azure Cosmos DB module. Create a resource group az group create --name myResourceGroup --location "West Europe". Create an Azure...
Read more >
TIBCO Data Virtualization - Cosmos DB Adapter Guide
section shows how to set up more advanced configurations and troubleshoot connection errors. Basic Tab. Connecting to Cosmos DB.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found