select * from azure_ad_group
Error: pq: rpc error: code = Unknown desc = Invoking Azure CLI failed with the following error: UnexpectedError: The command failed with an unexpected error. Here is the traceback:
Get Token request returned http error: 400 and server response: {"error":"invalid_grant","error_description":"AADSTS50173: The provided grant has expired due to it being revoked, a fresh auth token is needed. The user might have changed or reset their password. The grant was issued on '2020-08-26T13:52:10.1898142Z' and the TokensValidFrom date (before which tokens are not valid) for this user is '2021-01-26T21:20:37.0000000Z'.\r\nTrace ID: 62ae314d-d6be-4854-ab2d-1e19ac971300\r\nCorrelation ID: 5d919732-f206-4ed5-b6f9-1d6798276b37\r\nTimestamp: 2021-01-26 23:28:38Z","error_codes":[50173],"timestamp":"2021-01-26 23:28:38Z","trace_id":"62ae314d-d6be-4854-ab2d-1e19ac971300","correlation_id":"5d919732-f206-4ed5-b6f9-1d6798276b37","error_uri":"https://login.microsoftonline.com/error?code=50173"}
Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/knack/cli.py", line 215, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 654, in execute
raise ex
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 711, in _run_job
six.reraise(*sys.exc_info())
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/six.py", line 703, in reraise
raise value
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 688, in _run_job
result = cmd_copy(params)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 325, in __call__
return self.handler(*args, **kwargs)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/azure/cli/core/__init__.py", line 784, in default_command_handler
return op(**command_args)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/azure/cli/command_modules/profile/custom.py", line 75, in get_access_token
creds, subscription, tenant = profile.get_raw_token(subscription=subscription, resource=resource, tenant=tenant)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/azure/cli/core/_profile.py", line 649, in get_raw_token
creds = self._creds_cache.retrieve_token_for_user(username_or_sp_id,
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/azure/cli/core/_profile.py", line 1019, in retrieve_token_for_user
token_entry = context.acquire_token(resource, username, _CLIENT_ID)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/adal/authentication_context.py", line 145, in acquire_token
return self._acquire_token(token_func)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/adal/authentication_context.py", line 128, in _acquire_token
return token_func(self)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/adal/authentication_context.py", line 143, in token_func
return token_request.get_token_from_cache_with_refresh(user_id)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/adal/token_request.py", line 347, in get_token_from_cache_with_refresh
return self._find_token_from_cache()
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/adal/token_request.py", line 127, in _find_token_from_cache
return self._cache_driver.find(cache_query)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/adal/cache_driver.py", line 198, in find
return self._refresh_entry_if_necessary(entry,
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/adal/cache_driver.py", line 177, in _refresh_entry_if_necessary
return self._refresh_expired_entry(entry)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/adal/cache_driver.py", line 153, in _refresh_expired_entry
token_response = self._refresh_function(entry, None)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/adal/token_request.py", line 137, in _get_token_with_token_response
return self._get_token_with_refresh_token(refresh_token, resource, None)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/adal/token_request.py", line 339, in _get_token_with_refresh_token
return self._oauth_get_token(oauth_parameters)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/adal/token_request.py", line 112, in _oauth_get_token
return client.get_token(oauth_parameters)
File "/usr/local/Cellar/azure-cli/2.12.1/libexec/lib/python3.8/site-packages/adal/oauth2_client.py", line 289, in get_token
raise AdalError(return_error_string, error_response)
adal.adal_error.AdalError: Get Token request returned http error: 400 and server response: {"error":"invalid_grant","error_description":"AADSTS50173: The provided grant has expired due to it being revoked, a fresh auth token is needed. The user might have changed or reset their password. The grant was issued on '2020-08-26T13:52:10.1898142Z' and the TokensValidFrom date (before which tokens are not valid) for this user is '2021-01-26T21:20:37.0000000Z'.\r\nTrace ID: 62ae314d-d6be-4854-ab2d-1e19ac971300\r\nCorrelation ID: 5d919732-f206-4ed5-b6f9-1d6798276b37\r\nTimestamp: 2021-01-26 23:28:38Z","error_codes":[50173],"timestamp":"2021-01-26 23:28:38Z","trace_id":"62ae314d-d6be-4854-ab2d-1e19ac971300","correlation_id":"5d919732-f206-4ed5-b6f9-1d6798276b37","error_uri":"https://login.microsoftonline.com/error?code=50173"}
To open an issue, please run: 'az feedback'
>
$ az vm list
ValidationError: The credential data used by CLI has been expired because you might have changed or reset the password. Please clear browser's cookies and run 'az login'