-
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
Commands run once only, then throw error sending the request #17103
Comments
Hi @Aurilium , thanks for contacting us. According to the debug message, module is installed successfully and HTTP request is created. But request cannot be sent out due to unknown reason. Could you check things below?
|
Hi @dingmeng-xue thank you for your response! |
Hi, sorry it took so long, it's quite busy here at the moment. So I tried to do steps 3 and 4 but found that I can't send any cmdlet/request anymore and get the same error message immediately. |
@Aurilium , thanks for the information. Please contact us if you have further update. I will keep this issue open for a while. |
Description
Hi, I'm not sure if this fits better into bug reports or questions to Az but I'm facing severe problems with the Az module preventing me to use Azure with PowerShell.
My problem:
I installed the Az module (details below at "What I did") and started testing the connection testing some basic cmdlets for querying resources lists and similar. Everything was fine until I executed one cmdlet a second time. Then I received the error "An error occurred while sending the request" I tried different cmdlets and they worked - but also only the first time. When I execute any command a second time it will fail with this error message. I can disconnect but then I can't reconnect since I'd need to execute the connect command a second time and it fails with "Connect-AzAccount : An error occurred while sending the request"
What I did:
(note: maybe the first installation was interrupted by some company update procedure killing my PS session. Maybe, I'm not sure, since it took more than 10 minutes to install without any output. That's why I uninstalled and reinstalled)
There are quite restrictive policies in place on my company's client PC as well as the network. That might be the cause but I don't know how to tackle this problem or analyze its root further. Maybe the cause is the (maybe) failed first installation of the Az package. Perhaps the uninstall guide in the docs linked above is not clean enough? I don't know what else might be the root cause since the cmdlets I tried do work for the first time in a session but afterwards they fail.
I tried using Az from MS Code until it fails. If I try to connect to Azure using a plain PS window 10 minutes later it still fails. It only recovers after some more time. Then I can run commands again, once.
I'd be very glad if you can help here.
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: