Open markstensgaard opened 1 year ago
@markstensgaard I tried today and was able to log in to China cloud without error. It looks to me mostly like a networking issue. Here are a few things to try:
Thank you for your response. I should have been more clear that this is only affecting some users, who are all on the same network and using the same corporate firewall. I spent quite a while trying to find a common difference in the computer configurations of those who are having the problem versus those who aren't, but I was unsuccessful. It seems basically random.
After making this post yesterday, I did try PowerShell 7 on one of the affected computers, and it does work. The issue with this is that we are not using PowerShell directly; we use system calls from another program with "powershell.exe". It seems that "powershell.exe" defaults to PowerShell 5.1, and "pwsh.exe" is for PowerShell 7. But I am not in a position that I can easily deploy a PowerShell 7 install on all potential users of my applications, and thus I can't guarantee that "pwsh.exe" exists for updating all "powershell.exe" statements to "pwsh.exe". I could do something to see if PowerShell 7 is installed first, but PowerShell system calls are sprinkled around quite a bit, and updating all of these would be a lot of effort, especially because this seems like something that is problematic and fixable with PowerShell 5.1 itself. But it working in PowerShell 7 is at least something that we have in our back pocket when we absolutely have to get something working for a user.
Yes, this is a new problem. There has been no change to our network that I am aware of.
We can sign in with Azure Portal, and we can generally sign in with Azure CLI, though there have been similar issues with Azure CLI when WAM is enabled (this problem was experienced by everyone who attempted it, not just a few users): [Azure/azure-cli/issues/26565/]
@markstensgaard I'm checking with the team that owns WAM...at the same time, could you try clearing the browser cache from internet options?
Clearing the browser cache does nothing. We've also tried changing the default browser (we've tried Edge, Chrome, and IE), and there is no difference.
Description
Several users are experiencing problems when trying to log into their accounts in the AzureChinaCloud environment. Logging into their AzureCloud environment accounts can be done successfully with no issue.
Connect-AzAccount -environment "AzureChinaCloud"
(we usually include the tenant ID, too, but the above command is sufficient to trigger the error)
Instead of bringing up the normal login form, we get an error pop-up with the following contents:
"**_An error has occurred in the script on this page.
Line: 13 Char: 3578 Error: 'SRSRetry' is undefined Code: 0 URL: https://aadcdn.msauth.cn/shared/1.0/content/js/ConvergedLogin_PCore_PmCwnLtV934TM0oZ2KHoqg2.js
Do you want to continue running scripts on this page? [Yes][No]_**"
Regardless of whether Yes or No is clicked, the form remains completely blank, and the user is unable to log in, and there is no return signal to PowerShell until the user manually closes the blank form.
Using the WAM login option (Update-AzConfig -EnableLoginByWam $true) avoids the pop-up error, but the login form is still completely blank.
Several versions of PowerShell, Az, and Az.Accounts have been tried, and computers have been restarted. The problem persists.
Issue script & Debug output
Environment data
Module versions
Error output