Open msJinLei opened 1 month ago
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.
What about #25003?
Thanks for reporting the issue. I reply in it.
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.
@weyCC81 Thanks for reporting the issue. I shall say yes
Please disable WAM to workaround it firstly
Update-AzConfig -EnableLoginByWam $false
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.
@weyCC81 Yes, we have reported your issue to MSAL https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/4796
I get the same issue whenever I run from an elevated console window. Running the:
Update-AzConfig -EnableLoginByWam $false
...command fixes it.
1. The interactive login method cannot popup window for WAM
Report an error "User canceled authentication" Refer to https://github.com/AzureAD/microsoft-authentication-library-for-python/issues/707
2. Azure PowerShell cmdlets are unable to run after login with Username+Password or DeviceCode
-Tenant
parameterWorkaround
3. WAM pop-up window to select an account is not easy to find
4. WAM pop-up window doesn't display "Work and school account" option