Skip to content

Feedback - Azure cli installations instructions are not clear for RHEL9 VM #5610

@dsilprabhjot

Description

@dsilprabhjot

Type of issue

Other (describe below)

Feedback

I'm using python version 3.9.19 on RHEL9[Operating System: Red Hat Enterprise Linux 9.5 (Plow) Kernel: Linux 5.14.0-503.11.1.el9_5.x86_64].
Azure cli does not mention what rpms are needed on vanilla OS. Here vanilla OS is very basic RHEL OS setup. It fails with different errors.

I also tried to install python 3.12 but no luck.
Documentation needs to be robust what rpm are needed before we trigger az utility installation.

Microsoft docs also recommend to trigger rpm -ivh --nodeps azure-cli-*.rpm << This is wrong
Kindly correct https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest&pivots=dnf and make it user friendly.

Error -
[root@perforce-demo Python-3.12.5]# az version
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/main.py", line 15, in
from azure.cli.core.intercept_survey import prompt_survey_message
File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/intercept_survey.py", line 11, in
from azure.cli.core._profile import Profile
File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/_profile.py", line 13, in
from azure.cli.core.cloud import get_active_cloud, set_cloud_subscription
File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/cloud.py", line 14, in
from azure.cli.core.util import urlretrieve
File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/util.py", line 16, in
import ssl
File "/usr/local/python3.12/lib/python3.12/ssl.py", line 100, in
import _ssl # if we can't import it, let the error propagate
^^^^^^^^^^^
ModuleNotFoundError: No module named '_ssl'bust

Page URL

https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest&pivots=dnf

Content source URL

https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-conceptual/Latest-version/install-azure-cli-linux.md

Author

@mikefrobbins

Document Id

8d644a96-8431-d5d0-0f2f-f2a7d48f82e6

Platform Id

031eb491-f1cf-0c10-2303-cca55905c545

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions