Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Dmitry1987/65f00f6bf49242c75d68ec4663456591 to your computer and use it in GitHub Desktop.
Save Dmitry1987/65f00f6bf49242c75d68ec4663456591 to your computer and use it in GitHub Desktop.
azure.az.login.fail.log
gitlab-runner@f7b55ade9c83:~/code$ az login --service-principal --username ${AZ_ANSIBLE_USER} --password ${AZ_ANSIBLE_PASS} --tenant ${AZ_ANSIBLE_TENANT} --debug
Command arguments: ['login', '--service-principal', '--username', 'xxxxx', '--password', 'xxxx', '--tenant', 'xxxx', '--debug']
Event: Cli.PreExecute []
Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7fd389edc598>, <function OutputProducer.on_global_arguments at 0x7fd389cb97b8>, <function CLIQuery.on_global_arguments at 0x7fd389a4e9d8>]
Event: CommandInvoker.OnPreCommandTableCreate []
Installed command modules ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'aro', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'monitor', 'natgateway', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'vm']
Loaded module 'acr' in 0.006 seconds.
Loaded module 'acs' in 0.006 seconds.
Loaded module 'advisor' in 0.001 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'ams' in 0.005 seconds.
Loaded module 'apim' in 0.001 seconds.
Loaded module 'appconfig' in 0.004 seconds.
Loaded module 'appservice' in 0.021 seconds.
Loaded module 'aro' in 0.004 seconds.
Loaded module 'backup' in 0.004 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'batch' in 0.061 seconds.
Loaded module 'batchai' in 0.003 seconds.
Loaded module 'billing' in 0.001 seconds.
Loaded module 'botservice' in 0.004 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'cdn' in 0.004 seconds.
Loaded module 'cloud' in 0.001 seconds.
Loaded module 'cognitiveservices' in 0.001 seconds.
Loaded module 'configure' in 0.001 seconds.
Loaded module 'consumption' in 0.002 seconds.
Loaded module 'container' in 0.002 seconds.
Loaded module 'cosmosdb' in 0.007 seconds.
Loaded module 'deploymentmanager' in 0.002 seconds.
Loaded module 'dla' in 0.004 seconds.
Loaded module 'dls' in 0.003 seconds.
Loaded module 'dms' in 0.002 seconds.
Loaded module 'eventgrid' in 0.002 seconds.
Loaded module 'eventhubs' in 0.003 seconds.
Loaded module 'extension' in 0.001 seconds.
Loaded module 'feedback' in 0.001 seconds.
Loaded module 'find' in 0.001 seconds.
Loaded module 'hdinsight' in 0.002 seconds.
Loaded module 'interactive' in 0.000 seconds.
Loaded module 'iot' in 0.005 seconds.
Loaded module 'iotcentral' in 0.001 seconds.
Loaded module 'keyvault' in 0.006 seconds.
Loaded module 'kusto' in 0.004 seconds.
Loaded module 'lab' in 0.004 seconds.
Loaded module 'managedservices' in 0.001 seconds.
Loaded module 'maps' in 0.001 seconds.
Loaded module 'monitor' in 0.007 seconds.
Loaded module 'natgateway' in 0.001 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'netappfiles' in 0.003 seconds.
Loaded module 'network' in 0.033 seconds.
Loaded module 'policyinsights' in 0.002 seconds.
Loaded module 'privatedns' in 0.004 seconds.
Loaded module 'profile' in 0.001 seconds.
Loaded module 'rdbms' in 0.008 seconds.
Loaded module 'redis' in 0.002 seconds.
Loaded module 'relay' in 0.003 seconds.
Loaded module 'reservations' in 0.002 seconds.
Loaded module 'resource' in 0.010 seconds.
Loaded module 'role' in 0.004 seconds.
Loaded module 'search' in 0.001 seconds.
Loaded module 'security' in 0.003 seconds.
Loaded module 'servicebus' in 0.004 seconds.
Loaded module 'servicefabric' in 0.002 seconds.
Loaded module 'signalr' in 0.002 seconds.
Loaded module 'sql' in 0.008 seconds.
Loaded module 'sqlvm' in 0.002 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'storage' in 0.040 seconds.
Loaded module 'vm' in 0.017 seconds.
Loaded all modules in 0.347 seconds. (note: there's always an overhead with the first module loaded)
Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7fd388b34950>]
az_command_data_logger : command args: login --service-principal --username {} --password {} --tenant {} --debug
metadata file logging enabled - writing logs to '/home/gitlab-runner/.azure/commands'.
Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x7fd388b52ae8>]
Event: CommandInvoker.OnPostArgumentLoad []
Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x7fd388b0bae8>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x7fd388b0bc80>]
Event: CommandInvoker.OnCommandTableLoaded []
Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x7fd3876f6730>]
Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7fd389cb9840>, <function CLIQuery.handle_query_parameter at 0x7fd389a4ea60>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x7fd388b0bb70>, <function handler at 0x7fd38755d6a8>]
adal-python : b468c7ab-9ff2-4729-9241-1cbc2eff74d1 - Authority:Performing instance discovery: ...
adal-python : b468c7ab-9ff2-4729-9241-1cbc2eff74d1 - Authority:Performing static instance discovery
adal-python : b468c7ab-9ff2-4729-9241-1cbc2eff74d1 - Authority:Authority validated via static instance discovery
adal-python : b468c7ab-9ff2-4729-9241-1cbc2eff74d1 - TokenRequest:Getting token with client credentials.
adal-python : b468c7ab-9ff2-4729-9241-1cbc2eff74d1 - TokenRequest:No user_id passed for cache query
adal-python : b468c7ab-9ff2-4729-9241-1cbc2eff74d1 - CacheDriver:finding with query keys: {'_clientId': '...'}
adal-python : b468c7ab-9ff2-4729-9241-1cbc2eff74d1 - CacheDriver:Looking for potential cache entries: {'_clientId': '...'}
adal-python : b468c7ab-9ff2-4729-9241-1cbc2eff74d1 - CacheDriver:Found 0 potential entries.
urllib3.connectionpool : Starting new HTTPS connection (1): login.microsoftonline.com:443
urllib3.connectionpool : https://login.microsoftonline.com:443 "POST /xxxxxxxxxxxxx/oauth2/token HTTP/1.1" 200 1354
adal-python : b468c7ab-9ff2-4729-9241-1cbc2eff74d1 - OAuth2Client:Get Token Server returned this correlation_id: b468c7ab-9ff2-4729-9241-1cbc2eff74d1
adal-python : b468c7ab-9ff2-4729-9241-1cbc2eff74d1 - CacheDriver:Adding entry AccessTokenId: b'xxxxxxxxx'
adal-python : b468c7ab-9ff2-4729-9241-1cbc2eff74d1 - CacheDriver:Added entry is MRRT
msrest.universal_http.requests : Configuring retry: max_retries=4, backoff_factor=0.8, max_backoff=90
cli.azure.cli.core.util : The command failed with an unexpected error. Here is the traceback:
The command failed with an unexpected error. Here is the traceback:
cli.azure.cli.core.util : APIVersion 2019-06-01 is not available
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/knack/cli.py", line 215, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/commands/__init__.py", line 654, in execute
raise ex
File "/usr/local/lib/python3.6/dist-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/lib/python3.6/dist-packages/azure/cli/core/commands/__init__.py", line 711, in _run_job
six.reraise(*sys.exc_info())
File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise
raise value
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/commands/__init__.py", line 688, in _run_job
result = cmd_copy(params)
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/commands/__init__.py", line 325, in __call__
return self.handler(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/__init__.py", line 545, in default_command_handler
return op(**command_args)
File "/usr/local/lib/python3.6/dist-packages/azure/cli/command_modules/profile/custom.py", line 150, in login
use_cert_sn_issuer=use_cert_sn_issuer)
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/_profile.py", line 210, in find_subscriptions_on_login
username, sp_auth, tenant, self._ad_resource_uri)
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/_profile.py", line 865, in find_from_service_principal_id
result = self._find_using_specific_tenant(tenant, token_entry[_ACCESS_TOKEN])
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/_profile.py", line 960, in _find_using_specific_tenant
subscriptions = client.subscriptions.list()
File "/usr/local/lib/python3.6/dist-packages/azure/mgmt/resource/subscriptions/subscription_client.py", line 132, in subscriptions
raise NotImplementedError("APIVersion {} is not available".format(api_version))
NotImplementedError: APIVersion 2019-06-01 is not available
APIVersion 2019-06-01 is not available
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/knack/cli.py", line 215, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/commands/__init__.py", line 654, in execute
raise ex
File "/usr/local/lib/python3.6/dist-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/lib/python3.6/dist-packages/azure/cli/core/commands/__init__.py", line 711, in _run_job
six.reraise(*sys.exc_info())
File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise
raise value
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/commands/__init__.py", line 688, in _run_job
result = cmd_copy(params)
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/commands/__init__.py", line 325, in __call__
return self.handler(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/__init__.py", line 545, in default_command_handler
return op(**command_args)
File "/usr/local/lib/python3.6/dist-packages/azure/cli/command_modules/profile/custom.py", line 150, in login
use_cert_sn_issuer=use_cert_sn_issuer)
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/_profile.py", line 210, in find_subscriptions_on_login
username, sp_auth, tenant, self._ad_resource_uri)
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/_profile.py", line 865, in find_from_service_principal_id
result = self._find_using_specific_tenant(tenant, token_entry[_ACCESS_TOKEN])
File "/usr/local/lib/python3.6/dist-packages/azure/cli/core/_profile.py", line 960, in _find_using_specific_tenant
subscriptions = client.subscriptions.list()
File "/usr/local/lib/python3.6/dist-packages/azure/mgmt/resource/subscriptions/subscription_client.py", line 132, in subscriptions
raise NotImplementedError("APIVersion {} is not available".format(api_version))
NotImplementedError: APIVersion 2019-06-01 is not available
cli.azure.cli.core.util :
To open an issue, please run: 'az feedback'
To open an issue, please run: 'az feedback'
Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7fd388b34b70>]
az_command_data_logger : exit code: 1
Suppress exception There are no active accounts.
Suppress exception Please run 'az login' to setup account.
telemetry.save : Save telemetry record of length 4903 in cache
telemetry.check : Returns Positive.
telemetry.main : Begin creating telemetry upload process.
telemetry.process : Creating upload process: "/usr/bin/python3 /usr/local/lib/python3.6/dist-packages/azure/cli/telemetry/__init__.py /home/gitlab-runner/.azure"
telemetry.process : Return from creating process
telemetry.main : Finish creating telemetry upload process.
command ran in 0.609 seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment