[BUG] Register-PnpManagementShellAccess freezes for Sovereign cloud
Reporting an Issue or Missing Feature
Running the Register-PnPManagementShellAccess ccmdlet with the -AzureEnvironment param set to USGovernmentHigh freezes the PowerShell console.
Expected behavior
Prompt me to grant consent to my GCCH account.
Actual behavior
Freezes the PowerShell console and doesn't open any prompts.
Steps to reproduce behavior
- Open a new PowerShell Console
- Run Register-PnPManagementShellAccess -AzureEnvironment USGovernmentHigh
What is the version of the Cmdlet module you are running?
1.7.0
Which operating system/environment are you running PnP PowerShell on?
- [x ] Windows
- [ ] Linux
- [ ] MacOS
- [ ] Azure Cloud Shell
- [ ] Azure Functions
- [ ] Other : please specify
Looking into this
Found the issue. Trying to fix it.
Turns out to be quite difficult to fix this one. Will discuss it in our next team meeting how to deal with it.
@NikCharlebois - is the issue still there ? Can you update to the latest version, preferably the nightly build, try and let us know ? We did make some changes internally to the Authentication handling, maybe it fixes your issue ?
Sorry for the delay folks. Same behavior as before with 1.9.0
Any more updates on this issue, issue still present in 1.10.0
@NikCharlebois @KoenZomers any progress on resolution of this bug? Still experiencing freezing behavior against GCCH environment.
I've done an attempt to fix this issue. As I don't have a login account to a GCCH tenant, I could only get as far as the login dialog being shown. Can any of you try and see if the custom build in this branch fixes your issue?
To test it, I ran:
Register-PnPManagementShellAccess -AzureEnvironment USGovernmentHigh -TenantName "xxx.onmicrosoft.us"
Which results in the login dialog being shown:
@KoenZomers I can test tomorrow
@desmay - any update on this ? Were you able to test it , if so , could you share the results ?
@NikCharlebois Maybe Nick can help better in my case ( this time I am working on Azure US Gov tenant for M365dsc). @gautamdsheth thanks gautam will keep track here on the same.
Sorry it's been a while, lost access to GCCH tenant but I got it back now. I just test with 1.12.0 and get the following error after I type in credentials. I'm running the following: Register-PnPManagementShellAccess -AzureEnvironment USGovernmentHigh -TenantName "xxxx.onmicrosoft.us".
Can we reopen this issue ?