Closed shk3bq4d closed 10 months ago
@shk3bq4d What kind of authorization are you using? 'az login', 'credentials_files’ or env. I checked the code again locally and did not encounter the problem you submitted?
Print raw_cloud_env:
{'endpoints': {'active_directory': 'https://login.microsoftonline.com',
'active_directory_data_lake_resource_id': 'https://datalake.azure.net/',
'active_directory_graph_resource_id': 'https://graph.windows.net/',
'active_directory_resource_id': 'https://management.core.windows.net/',
'app_insights_resource_id': 'https://api.applicationinsights.io',
'app_insights_telemetry_channel_resource_id': 'https://dc.applicationinsights.azure.com/v2/track',
'attestation_resource_id': 'https://attest.azure.net',
'azmirror_storage_account_resource_id': None,
'batch_resource_id': 'https://batch.core.windows.net/',
'gallery': 'https://gallery.azure.com/',
'log_analytics_resource_id': 'https://api.loganalytics.io',
'management': 'https://management.core.windows.net/',
'media_resource_id': 'https://rest.media.azure.net',
'microsoft_graph_resource_id': 'https://graph.microsoft.com/',
'ossrdbms_resource_id': 'https://ossrdbms-aad.database.windows.net',
'portal': 'https://portal.azure.com',
'resource_manager': 'https://management.azure.com/',
'sql_management': 'https://management.core.windows.net:8443/',
'synapse_analytics_resource_id': 'https://dev.azuresynapse.net',
'vm_image_alias_doc': 'https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json'},
'is_active': True,
'name': 'AzureCloud',
'profile': 'latest',
'suffixes': {'acr_login_server_endpoint': '.azurecr.io',
'attestation_endpoint': '.attest.azure.net',
'azure_datalake_analytics_catalog_and_job_endpoint': 'azuredatalakeanalytics.net',
'azure_datalake_store_file_system_endpoint': 'azuredatalakestore.net',
'keyvault_dns': '.vault.azure.net',
'mariadb_server_endpoint': '.mariadb.database.azure.com',
'mhsm_dns': '.managedhsm.azure.net',
'mysql_server_endpoint': '.mysql.database.azure.com',
'postgresql_server_endpoint': '.postgres.database.azure.com',
'sql_server_hostname': '.database.windows.net',
'storage_endpoint': 'core.windows.net',
'storage_sync_endpoint': 'afs.azure.net',
'synapse_analytics_endpoint': '.dev.azuresynapse.net'}}
Hello @Fred-sun and thank you for following up,
As a side remark, I am back on 1.18.1 and it works.
As for my authentification mechanism, I am not very familiar on the various mechanisms, but if I delete ~/.azure/msal_token_cache.json
, then my ansible playbook no longer works, so I would say az login
, but I hope you can figure out.
Best regards,
@shk3bq4d I'm sorry to reply you so late. Previously, delete track1 process lead this error. , which was fixed in PR#1340. Please updated to v2.1.0, try again. Thank you very much!
Hello,
The issue is no longer present with version v2.1.0.
I am a bit confused as to why as it is one of the two versions I reported to be initially incorrect. A comparison of pip list
may have been useful.
Anyhow, thank you @Fred-sun and I'll mark this issue as closed
@shk3bq4d Thank you for your feedback, you are welcome to submit your problems!
used to work on 1.18.1, fails on 2.0.0 and 2.1.0, I haven't tested on 2.1.1 since I am stuck on ansible 2.13
its close to https://github.com/Azure/azure-sdk-for-python/issues/3009 and #1343