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.

Creating a KeyVault in Cloud Console fails with illegible error

See original GitHub issue

Description

Outline the issue here: When creating a KeyVault inside the cloud console, the CLI command dies with the below error.

To repro:

az group create --name myResourceGroup --location eastus
az keyvault create --resource-group myResourceGroup --name myKeyVault --enabled-for-deployment
'isMRRT'
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/azure/cli/main.py", line 36, in main
    cmd_result = APPLICATION.execute(args)
  File "/usr/local/lib/python3.5/dist-packages/azure/cli/core/application.py", line 210, in exe
cute
    result = expanded_arg.func(params)
  File "/usr/local/lib/python3.5/dist-packages/azure/cli/core/commands/__init__.py", line 289,
in __call__
    return self.handler(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/azure/cli/core/commands/__init__.py", line 488,
in _execute_command
    reraise(*sys.exc_info())
  File "/usr/local/lib/python3.5/dist-packages/six.py", line 686, in reraise
    raise value
  File "/usr/local/lib/python3.5/dist-packages/azure/cli/core/commands/__init__.py", line 465,
....
    return token_func(self)
  File "/usr/local/lib/python3.5/dist-packages/adal/authentication_context.py", line 124, in to
ken_func
    return token_request.get_token_from_cache_with_refresh(user_id)
  File "/usr/local/lib/python3.5/dist-packages/adal/token_request.py", line 350, in get_token_f
rom_cache_with_refresh
    return self._find_token_from_cache()
  File "/usr/local/lib/python3.5/dist-packages/adal/token_request.py", line 128, in _find_token
_from_cache
    return self._cache_driver.find(cache_query)
  File "/usr/local/lib/python3.5/dist-packages/adal/cache_driver.py", line 179, in find
    entry, is_resource_tenant_specific = self._load_single_entry_from_cache(query)
  File "/usr/local/lib/python3.5/dist-packages/adal/cache_driver.py", line 112, in _load_single
_entry_from_cache
    token = next(mrrt_tokens, None)
  File "/usr/local/lib/python3.5/dist-packages/adal/cache_driver.py", line 111, in <genexpr>
    mrrt_tokens = (x for x in potential_entries if x[TokenResponseFields.IS_MRRT])
KeyError: 'isMRRT'

Environment summary

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

CLI Version: What version of the CLI and modules are installed? (Use az --version)
CLI Version 2.0.7 KeyVault Pkg: 2.0.5

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

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jlukcommented, Aug 31, 2017

I’ve been hitting some odd auth errors as well for unrelated CLI tasks like #4332, lets pick this up with @yugangw-msft when he returns

0reactions
yugangw-msftcommented, May 16, 2019

This has been fixed for a while that cloud shell has made token available for KV, ARM, Graph, Batch and Storage at least.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Azure key vault access policy issues
The simplest way to authenticate a cloud-based application to Key Vault is with a managed identity; see Authenticate to Azure Key Vault for ......
Read more >
12 General Oracle Key Vault Management
Log in to the Oracle Key Vault management console as a user with the System Administrator role. Select the System tab, and then...
Read more >
Password Manager Pro FAQ - ManageEngine
Logs, Reports, and CAPTCHA are unreadable after upgrading to Password Manager Pro build 12000. How to fix this issue? Check for the following:...
Read more >
Azure Key Vault Quickstart fails to provide key vault client
"Creating a secret in [...]-key-vault called 'mySecret' with the value 'bob' ...Unhandled exception. Azure.Identity.
Read more >
Azure file upload virus scan - Para Erboristeria Ruocco
In the command, make sure to If Chocolatey doesn't find a virus scan has ... Middleware for file upload and virus scanning through...
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