azure-cli: [DocumentDB] The list and show commands throw an unhandled exception

I’m able to successfully create a DocumentDB instance via az documentdb create, however, if I subsequently try to run the list, list-all or show commands, I get the following exception:

unbound method get() must be called with DatabaseAccountsOperations instance as first argument (got DocumentDB instance instead)
Traceback (most recent call last):
  File "/Users/joncart/Library/Python/2.7/lib/python/site-packages/azure/cli/main.py", line 37, in main
    cmd_result = APPLICATION.execute(args)
  File "/Users/joncart/Library/Python/2.7/lib/python/site-packages/azure/cli/core/application.py", line 157, in execute
    result = expanded_arg.func(params)
  File "/Users/joncart/Library/Python/2.7/lib/python/site-packages/azure/cli/core/commands/__init__.py", line 333, in _execute_command
    result = op(client, **kwargs) if client else op(**kwargs)
TypeError: unbound method get() must be called with DatabaseAccountsOperations instance as first argument (got DocumentDB instance instead)

Is there maybe something wrong with my installation?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 15 (11 by maintainers)

Commits related to this issue

Most upvoted comments

@dmakwana I took a look and created a PR. I don’t have a database to test it on but that PR may help.