Azure / Azure/azure-cli-extensions

Unable to install Az ssh extension in AVD

Open
#8,545 1 comment 0 reactions 0 assignees View on GitHub
bug customer-reported Service Attention VM SSH
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### Describe the bug

Unable to install Az ssh extension in AVD machine. In our case ssh packages are stored in artifactory, and tried to download and install by the following commands and got the error. It was perfectly working fine few days ago. All of sudden it has stopped working anymore.

python -m pip config set global.trusted-host
python -m pip config set global.index-url
az extension add --name ssh

After running these commands it is able to download ssh-2.0.6-py3-none-any.whl, and while installing we see the following error:
FileNotFoundError: [WinError 2] The system cannot find the file specified

To debug further we tried the following command as well and got the same error again.
az extension add --source https://azcliprod.blob.core.windows.net.cli-extensions/ssh-2.0.6-py3-none-any.whl

To debug further we installed latest version of Az CLI (2.70) and tried to install ssh extension and got the following error:
cli.azure.cli.core.azclierror: an error occurred. Pip failed with status code 3221225477

### Related command

az extension add

### Errors

FileNotFoundError: [WinError 2] The system cannot find the file specified

cli.azure.cli.core.azclierror: an error occurred. Pip failed with status code 3221225477

### Issue script & Debug output

az extension add

### Expected behavior

Install the ssh extension successfully.

### Environment Summary

Az CLI version 2.64 and 2.70

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.