-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
The Known Issues of Az.Accounts 3.0.0 and Their Workarounds #25005
Comments
What about #25003? |
In ISE, on Windows 11 mine says the following, does this correlate? # 12.0.0 Az
# 3.0.0 Az.Accounts
# 6.0.0 Az.KeyVault
Connect-AzAccount -Tenantid [TenantID] -Subscription [Subscription]
# > Connect-AzAccount : InteractiveBrowserCredential authentication failed: A window handle must be configured. See https://aka.ms/msal-net-wam#parent-window-handles
# > Could not find tenant id for provided tenant domain '[TenantID]'. Please ensure that the provided user is found in the provided tenant domain. |
Thanks for reporting the issue. I reply in it. |
@weyCC81 Thanks for reporting the issue. I shall say yes Please disable WAM to workaround it firstly
|
@weyCC81 Yes, we have reported your issue to MSAL AzureAD/microsoft-authentication-library-for-dotnet#4796 |
I get the same issue whenever I run from an elevated console window. Running the:
...command fixes it. |
We have solved the below issue in the latest version: Az.Accounts 3.0.1
|
Using updated versions Az.Accounts 3.0.1 - 3.0.4 and it appears to still hang even after running cmdlet: |
Can you give me some more details? Normally, this issue should not exist. |
2 and 7 issues will be released at Az.13.0.0 version. |
Is this for real? Your response to a fundamental break in the PowerShell login experience is a shrug? Like most developers, I'm running a multi screen display environment, and every time I log in, it's like I'm playing wack-a-mole trying to find this stupid login screen. Sometimes it's on the same screen, but buried behind the 8-10 windows I run. Sometimes on my second or third monitor, but again NEVER on top. How trivial would it be to add the "Always on top" (WS_EX_TOPMOST) flag to the window? I believe that was implemented in Windows 3.x. |
I understand your pain-point. We list the "workaround" just to unblock the customers who thought the login window was not popped-up. We create the issue to track it. But the fix may refer to several teams so as to require more time. |
It's been 5 months. These teams are all Microsoft teams. WAM should have never been released with this fundamental flaw. |
1. The interactive login method cannot popup window for WAM (Fixed)
Report an error "User canceled authentication" Refer to AzureAD/microsoft-authentication-library-for-python#707
2. Azure PowerShell cmdlets are unable to run after login with DeviceCode and DeviceCode login methods will fail without
-Tenant
parameter (Mitigated)3. Azure PowerShell cmdlets are unable to run after login with UserName+Password and UserName+Password login methods will fail without
-Tenant
parameter (Mitigated)4. WAM pop-up window to select an account is not easy to find
Root case
Fail to get the right console handle. See AzureAD/microsoft-authentication-library-for-dotnet#4887
5 WAM pop-up window doesn't display "Work and school account" option
6. The interactive login method cannot popup window for WAM in Window PowerShell ISE Console
Note
Reported to MSAL team, see AzureAD/microsoft-authentication-library-for-dotnet#4796
7. The
ExportAzSshConfig
andEnterAzVMCommand
from Az.Ssh are not able to use when WAM is enabled.The text was updated successfully, but these errors were encountered: