Skip to content

Found multiple accounts with the same username 'myemail@sierac.fr' #31875

@eliassal

Description

@eliassal

Describe the bug

Since a couple of days, whenever I try to login using az login, I get

Found multiple accounts with the same username 'myemail@sierac.fr': [{'home_account_id': '00000000-0000-0000-79a4-f97ea3a4f412.9188040d-6c67-4c5b-b112-36a304b66dad', 'environment': 'login.microsoftonline.com', 'username': 'myemail@sierac.fr', 'account_source': 'broker', 'authority_type': 'MSSTS', 'local_account_id': '00000000-0000-0000-79a4-XXXXXXXXXXXXXX-6c67-4c5b-b112-36a304b66dad.f8cdef31-a31e-4b4a-93e4-5f571e91255a', 'realm': 'organizations'}, {'home_account_id': 'XXXXXXXXXXX-47a4-8ae8-XXXXXXXXXX-3ceb-4e88-af13-8f6c565fd4a5', 'environment': 'login.microsoftonline.com', 'username': 'myemail@sierac.fr', 'account_source': 'broker', 'authority_type': 'MSSTS', 'local_account_id': 'XXXXXXXXXX-47a4-8ae8-8dcb74XXXXXXX', 'realm': 'XXXXXX-3ceb-4e88-af13-XXXXXXXXX'}]
Please report to us via Github: #20168

I did
Clear-AzContext
az config set core.token_encryption=false

even I manually deleted everything in azureProfile.json file. Really stuck and cnt login to azure. Thanks for your help

Related command

az login

Errors

Found multiple accounts with the same username 'myemail@sierac.fr': [{'home_account_id': '00000000-0000-0000-79a4-f97ea3a4f412.9188040d-6c67-4c5b-b112-36a304b66dad', 'environment': 'login.microsoftonline.com', 'username': 'myemail@sierac.fr', 'account_source': 'broker', 'authority_type': 'MSSTS', 'local_account_id': '00000000-0000-0000-79a4-XXXXXXXXXXXXXX-6c67-4c5b-b112-36a304b66dad.f8cdef31-a31e-4b4a-93e4-5f571e91255a', 'realm': 'organizations'}, {'home_account_id': 'XXXXXXXXXXX-47a4-8ae8-XXXXXXXXXX-3ceb-4e88-af13-8f6c565fd4a5', 'environment': 'login.microsoftonline.com', 'username': 'myemail@sierac.fr', 'account_source': 'broker', 'authority_type': 'MSSTS', 'local_account_id': 'XXXXXXXXXX-47a4-8ae8-8dcb74XXXXXXX', 'realm': 'XXXXXX-3ceb-4e88-af13-XXXXXXXXX'}]
Please report to us via Github: #20168

Issue script & Debug output

Found multiple accounts with the same username 'myemail@sierac.fr': [{'home_account_id': '00000000-0000-0000-79a4-f97ea3a4f412.9188040d-6c67-4c5b-b112-36a304b66dad', 'environment': 'login.microsoftonline.com', 'username': 'myemail@sierac.fr', 'account_source': 'broker', 'authority_type': 'MSSTS', 'local_account_id': '00000000-0000-0000-79a4-XXXXXXXXXXXXXX-6c67-4c5b-b112-36a304b66dad.f8cdef31-a31e-4b4a-93e4-5f571e91255a', 'realm': 'organizations'}, {'home_account_id': 'XXXXXXXXXXX-47a4-8ae8-XXXXXXXXXX-3ceb-4e88-af13-8f6c565fd4a5', 'environment': 'login.microsoftonline.com', 'username': 'myemail@sierac.fr', 'account_source': 'broker', 'authority_type': 'MSSTS', 'local_account_id': 'XXXXXXXXXX-47a4-8ae8-8dcb74XXXXXXX', 'realm': 'XXXXXX-3ceb-4e88-af13-XXXXXXXXX'}]
Please report to us via Github: #20168

Expected behavior

Get connected to Azure as usual

Environment Summary

azure-cli 2.69.0 *

core 2.69.0 *
telemetry 1.1.0

Extensions:
account 0.2.5
automation 1.0.0b1
azure-devops 1.0.0
bastion 0.3.0
containerapp 1.1.0b2
interactive 0.5.3
next 0.1.3
resource-graph 2.1.0
spring-cloud 3.1.8
storage-preview 1.0.0b1

Dependencies:
msal 1.31.2b1
azure-mgmt-resource 23.1.1

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\salam.SALAM.azure'
Extensions directory 'C:\Users\salam.SALAM.azure\cliextensions'

Python (Windows) 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions