-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az login
results TypeError: can only concatenate str (not "NoneType") to str
#29030
Comments
Hi @ronttizz
Possible solution: Please confirm if this resolves your issue. |
Thank you for opening this issue, we will look into it. |
|
Confirmed that @v-starodubov's suggestion allows me to successfully login. Would be nice if this was fixed ASAP though since it's a serious regression. |
Same issue for our on-premises or hybrid environment. After the work-around for this different issue (#28997):
I get the error in this GitHub issue above. However, I still end up being logged into the account. It just throws the error. |
indicates azure-cli/src/azure-cli/azure/cli/command_modules/profile/_subscription_selector.py Lines 96 to 101 in be320b1
According to the log provided by @m1iktea in #29241 (comment),
@ronttizz, @v-starodubov, @XhmikosR, @TheOnlyWei, could you also check the |
az login
results TypeErroraz login
results TypeError: can only concatenate str (not "NoneType") to str
@jiasli sure
And error has dropped after the subscription request, may be related also 🤔
|
|
It seems that this error is not blocking me from the login itself like @TheOnlyWei pointed out. |
As I expected, the responses of all these Before #29245 is merged and released, you may disable the subscription selector by running
|
Describe the bug
Running
az login
will give TypeError: can only concatenate str (Not "NoneType") to strRelated command
az login
Errors
Issue script & Debug output
Expected behavior
Show information on successful login
Environment Summary
azure-cli 2.61.0
core 2.61.0
telemetry 1.1.0
Dependencies:
msal 1.28.0
azure-mgmt-resource 23.1.1
Python location '/opt/homebrew/Cellar/azure-cli/2.61.0/libexec/bin/python'
Extensions directory '/Users/x/.azure/cliextensions'
Python (Darwin) 3.11.9 (main, Apr 2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response
The text was updated successfully, but these errors were encountered: