-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Unable to install Azure CLI on Windows without admin access to machine #15381
Comments
@scrofungulus Thank you for your request. A work around is to pip install the CLI if you have python already installed: pip install azure-cli It is recommend you do this through a virtual environment (so it doesn't apply system wide) although not required: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/ |
Was hoping this would unblock me but I ran into an issue with the pip install:
And ofc you need Admin Privileges to install "Microsoft C++ Build Tools" edit: suggest adding an option to the MSI / installation wizard to install for only the current user, similar to the python installer. |
Is there any standalone executable that can be used instead of the admin install? We are not able to use the CLI in our organization. We have Windows but Python is not installed. |
Python does not typically compile to a native executable. The Azure CLI requires a python interpreter. |
As @bquantump pointed out in #15381 (comment), currently installing via
@david-jarman, for error #15381 (comment)
This is because you are using an old version of |
Please fix the installer to not require admin rights. :-) This is a major difference compared to the "classic CLI". |
WorkaroundI have provided more detailed instruction on how to install with pip at #20476. |
Hi, is there any update on this issue? |
@jiasli 's workaround to install az cli via pip is good enough. Thanks. |
The installation of azure CLI |
I have been facing this problem at my new employer. I needed IT intervention to get AZ CLI to get installed. But, the problem does not stop here. When I use the command May I ask what was Microsoft's rationale in chosing such an installation model? |
It will be great feature and I think many people are anticipating it |
Im following this. My employer revoked all admin privileges for engineers. |
I am waiting for one too |
The same is here |
The same is here. it would be very handy feature!!! |
Will this ever be resolved? While is local admin access required? |
Interesting approach. |
We're using this approach as a workaround, but have found it has some issues. The largest one is that the pip version of az-cli can cause conflicts if you have installed other Azure-related python dependencies. We run into this when using Ansible and the Azure collection (which under the hood uses specific Azure python dependencies). To get around this, we install az-cli in its own virtual environment. This has issues of its own, but it at least provides a path forward. Secondly, we found the release cycle for az-cli differs than the full tool, so bugs aren't always resolved at the same time. |
Installing Azure CLI in a virtual environment is the right path. Detailed instructions for installing with
|
Is your feature request related to a problem? Please describe.
As the title states, there is not currently a way (or I have not been able to find one) to install the Azure CLI without having admin privileges to the machine. This is fine for personal machines, but employer owned machines are typically highly locked down.
Describe the solution you'd like
A sane way to install the cli without admin privileges.
The text was updated successfully, but these errors were encountered: