Azure / azure-cli

Azure Command-Line Interface
MIT License
4.01k stars 2.98k forks source link

Cmdlets working in powershell with no elevated (admin) rights are no longer working after azure cli installation #23813

Open asimeonov opened 2 years ago

asimeonov commented 2 years ago

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name ``

Errors:

After install of Azure CLI most powershell cmdlets stopped working if not started as admin

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Expected Behavior

To not kill powershell nor Windows on Ryzen

Environment Summary

Windows-10-10.0.22000-SP0
Python 3.10.5
Installer: MSI

azure-cli 2.40.0

Additional Context

I have no idea how the CLI shows windows 10 I'm with Windows 11 pro. I can give some scr shots from powershell and how it stopped working. When this is not scary for most of the automation that we use on our internal systems because we can migrate to scripts that run-in administrator powershells it looks like it kills laptops with Ryzen that maybe have some registered cmdlets that can no longer be executed on startup.

As shown clearly EF is installed and this was working without admin rights before installation of CLI image Powershell run as admin, no issues. image

asimeonov commented 2 years ago

Maybe there is some other issue but after the installation of CLI user defined PATH is no longer loaded in powershell sessions. User defined variables are now only loaded when powershell is running under elevated permissions.

yonzhan commented 2 years ago

@jiasli for awareness