I was searching a long time to find out how to do this but everything I find ends up in some elevated shell situation. and I cannot configure the powershell proxy because of company restrictions.
However, since I am doing this for 30 years, I seem to be much faster than most in choosing the right google answers. So here we go:
Download a current python install here
run the installer with these settings:



Open Powershell: Win-R powershell
The tricky bit is to find the extra install ( --use-pep517 and --proxy
xxxxx options since the installer hangs otherwise: pip install --proxy http://YOURPROXY:PORT az-cli --use-pep517
Collecting az-cli Using cached az.cli-0.5-py3-none-any.whl (5.1 kB) Collecting azure-cli Using cached azure_cli-2.45.0-py3-none-any.whl (7.2 MB) Requirement already satisfied: antlr4-python3-runtime~=4.9.3 in c:\users\you\appdata\local\programs\python\python311\lib\site-packages (from azure-cli->az-cli) (4.9.3) Collecting azure-appconfiguration~=1.1.1 ...........................
snip
next we configure the proxy for az:
PS C:\Users\you> $env:HTTP_PROXY='http://YOURPROXY:PORT'
PS C:\Users\you> $env:HTTPS_PROXY='http://YOURPROXY:PORT'
and we are ready to login to azure: az login --tenant xxxxxx-xxxx-x-xx
We also require terraform for our project from here
Unpack: PS C:\Users\you\Downloads> Expand-Archive .\terraform_1.3.7_windows_amd64.zip
And copy it to the place you gonna need it, to save the hassle of setting up the PATH without admin rights:
cp .\terraform.exe ..\IdeaProjects\yourProject\terraform
surprisingly i did not explicitly need to configure a proxy for terraform....
All Set!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With