A cloud-based identity and access management service for securing user authentication and resource access
EnvironmentCredential.get_token failed: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
ManagedIdentityCredential.get_token failed: ManagedIdentityCredential authentication unavailable, no managed identity endpoint found.
SharedTokenCacheCredential.get_token failed: SharedTokenCacheCredential authentication unavailable. No accounts were found in the cache.
VisualStudioCodeCredential.get_token failed: Failed to get Azure user details from Visual Studio Code.
AzureCliCredential.get_token failed: 'az' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
DefaultAzureCredential.get_token failed: AzureCliCredential raised unexpected error "'az' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
"
DefaultAzureCredential failed to retrieve a token from the included credentials.
Attempted credentials:
EnvironmentCredential: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
ManagedIdentityCredential: ManagedIdentityCredential authentication unavailable, no managed identity endpoint found.
SharedTokenCacheCredential: SharedTokenCacheCredential authentication unavailable. No accounts were found in the cache.
VisualStudioCodeCredential: Failed to get Azure user details from Visual Studio Code.
AzureCliCredential: 'az' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Traceback (most recent call last):
File "D:/python project/game/test.py", line 16, in <module>
network_interface = network_client.network_interfaces.begin_create_or_update(
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\mgmt\network\v2020_11_01\operations_network_interfaces_operations.py", line 542, in begin_create_or_update
raw_result = self._create_or_update_initial(
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\mgmt\network\v2020_11_01\operations_network_interfaces_operations.py", line 489, in _create_or_update_initial
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\core\pipeline_base.py", line 211, in run
return first_node.send(pipeline_request) # type: ignore
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\core\pipeline_base.py", line 71, in send
response = self.next.send(request)
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\mgmt\core\policies_base.py", line 47, in send
response = self.next.send(request)
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\core\pipeline_base.py", line 71, in send
response = self.next.send(request)
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\core\pipeline_base.py", line 71, in send
response = self.next.send(request)
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\core\pipeline_base.py", line 71, in send
response = self.next.send(request)
[Previous line repeated 1 more time]
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\core\pipeline\policies_redirect.py", line 158, in send
response = self.next.send(request)
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\core\pipeline\policies_retry.py", line 435, in send
response = self.next.send(request)
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\core\pipeline_base.py", line 69, in send
_await_result(self._policy.on_request, request)
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\core\pipeline_tools.py", line 29, in await_result
result = func(*args, **kwargs)
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\core\pipeline\policies_authentication.py", line 93, in on_request
self._token = self._credential.get_token(*self._scopes)
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\identity_credentials\default.py", line 144, in get_token
return super(DefaultAzureCredential, self).get_token(*scopes, **kwargs)
File "C:\Users\django\AppData\Local\Programs\Python\Python38-32\lib\site-packages\azure\identity_credentials\chained.py", line 90, in get_token
raise ClientAuthenticationError(message=message)
azure.core.exceptions.ClientAuthenticationError: DefaultAzureCredential failed to retrieve a token from the included credentials.
Attempted credentials:
EnvironmentCredential: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
ManagedIdentityCredential: ManagedIdentityCredential authentication unavailable, no managed identity endpoint found.
SharedTokenCacheCredential: SharedTokenCacheCredential authentication unavailable. No accounts were found in the cache.
VisualStudioCodeCredential: Failed to get Azure user details from Visual Studio Code.