powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[BUG] Register-PnpManagementShellAccess freezes for Sovereign cloud

Open NikCharlebois opened this issue 4 years ago • 9 comments

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

NikCharlebois avatar Sep 30 '21 17:09 NikCharlebois

Looking into this

KoenZomers avatar Sep 30 '21 21:09 KoenZomers

Found the issue. Trying to fix it.

KoenZomers avatar Sep 30 '21 21:09 KoenZomers

Turns out to be quite difficult to fix this one. Will discuss it in our next team meeting how to deal with it.

KoenZomers avatar Oct 03 '21 23:10 KoenZomers

@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 ?

gautamdsheth avatar Jan 15 '22 17:01 gautamdsheth

Sorry for the delay folks. Same behavior as before with 1.9.0

NikCharlebois avatar Jan 28 '22 12:01 NikCharlebois

Any more updates on this issue, issue still present in 1.10.0

desmay avatar Apr 06 '22 16:04 desmay

@NikCharlebois @KoenZomers any progress on resolution of this bug? Still experiencing freezing behavior against GCCH environment.

johnweeding avatar May 24 '22 17:05 johnweeding

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:

image

KoenZomers avatar Jun 10 '22 00:06 KoenZomers

@KoenZomers I can test tomorrow

desmay avatar Jun 10 '22 01:06 desmay

@desmay - any update on this ? Were you able to test it , if so , could you share the results ?

gautamdsheth avatar Sep 29 '22 09:09 gautamdsheth

@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.

Brijeshoo7 avatar Sep 29 '22 10:09 Brijeshoo7

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 ?

image

desmay avatar Dec 01 '22 20:12 desmay