azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az bicep install freezes

Open michaelsrichter opened this issue 3 years ago • 6 comments

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az bicep install

Freezes here:

Errors:

Installing Bicep CLI v0.14.6...

It looks like the binary does get installed but when I try to run az bicep version I got an error message:

PermissionError: [Errno 13] Permission denied: '/home/mike/.azure/bin/bicep'

To Reproduce:

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

  • Put any pre-requisite steps here...
  • az bicep install

Expected Behavior

it should all work

Environment Summary

Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31, Ubuntu 20.04.5 LTS
Python 3.10.8
Installer: DEB

azure-cli 2.44.1

Additional Context

michaelsrichter avatar Feb 02 '23 03:02 michaelsrichter

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Feb 02 '23 05:02 ghost

route to CXP team

yonzhan avatar Feb 02 '23 05:02 yonzhan

@michaelsrichter Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.

navba-MSFT avatar Feb 03 '23 02:02 navba-MSFT

@michaelsrichter From the error message, it seems like the issue is related to lack of permissions ( ownership on the ./azure folder). Please follow the below action plan:

  1. Check the ownership of the directory mentioned in the error message (/home/mike/.azure/) by running the below command:

ls -l /home/mike/.azure

If you don't find the current user as the owner of this directory then you should follow the steps mentioned below.

  1. Run the below command to update the ownership of the directory:

sudo chown -R user /home/mike/.azure

navba-MSFT avatar Feb 03 '23 05:02 navba-MSFT

Thanks for the assistance on this. I initially thought it was an ownership issue as well. I ran a similar command but then I got a different error. I forgot the details of that error but it made me think there was something wrong with the bicep executable itself.

When I downloaded and installed Bicep directly via the instructions here: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/install - this Bicep executable worked (the one hosted here: /usr/local/bin/bicep).

But this did not fix the az bicep issue.

I DID solve this for myself by copying the bicep executable from /usr/local/bin/bicep to /home/mike/.azure/bicep and now the az bicep command works and I am unblocked.

michaelsrichter avatar Feb 05 '23 23:02 michaelsrichter

issue still exists, unable to install Image

kashifkr avatar Nov 21 '24 04:11 kashifkr