Azure / Azure/azure-cli

Can't install azure-cli because of pinned beta versions

Open
#32,406 6 comments 2 reactions 1 assignee Claimed by @bebound View on GitHub
Azure CLI Team customer-reported question
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

I'm trying to use
`uv tool install azure-cli@latest`
but installs version `2.0.67`.

After some investigation it turns out that this due to lots of pre-release packages being added since then.
Could you clean up your dependencies in https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/setup.py to use stable versions?

This is the problematic packages I found:
```
azure-batch==15.0.0b1
azure-keyvault-securitydomain==1.0.0b1
azure-mgmt-authorization==5.0.0b1
azure-mgmt-batchai==7.0.0b1
azure-mgmt-botservice~=2.0.0b3
azure-mgmt-containerinstance==10.2.0b1
azure-mgmt-containerregistry==14.1.0b1
azure-mgmt-datalake-store~=1.1.0b1
azure-mgmt-eventgrid==10.2.0b2
azure-mgmt-eventhub~=12.0.0b1
azure-mgmt-extendedlocation==1.0.0b2
azure-mgmt-hdinsight==9.1.0b2
azure-mgmt-iotcentral~=10.0.0b1
azure-mgmt-iothub==5.0.0b1
azure-mgmt-loganalytics==13.0.0b4
azure-mgmt-monitor~=7.0.0b1
azure-mgmt-policyinsights==1.1.0b4
azure-mgmt-postgresqlflexibleservers==1.1.0b2
azure-mgmt-rdbms==10.2.0b17
azure-mgmt-mysqlflexibleservers==1.0.0b3
azure-mgmt-resource-deployments==1.0.0b1
azure-mgmt-resource-deploymentscripts==1.0.0b1
azure-mgmt-resource-deploymentstacks==1.0.0b1
azure-mgmt-resource-templatespecs==1.0.0b1
azure-mgmt-servicebus~=10.0.0b1
azure-mgmt-servicefabricmanagedclusters==2.1.0b1
azure-mgmt-servicelinker==1.2.0b3
azure-mgmt-signalr==2.0.0b2
azure-mgmt-sqlvirtualmachine==1.0.0b5
azure-mgmt-sql==4.0.0b22
azure-mgmt-synapse==2.1.0b5
```

to anyone comming here looking for a quick solution:
`uv tool install --prerelease=allow azure-cli@latest`
will get you the latest version.

### Related command

`uv tool install azure-cli@latest`

### Errors

+ azure-cli==2.0.67
...
warning: The package `urllib3==2.5.0` does not have an extra named `secure`

### Issue script & Debug output

N/A

### Expected behavior

Expect it to install latest version. It would then look like this:
` + azure-cli==2.79.0`

### Environment Summary

Not sure if this is relevant in this context, but here it is:

azure-cli 2.57.0 *

core 2.57.0 *
telemetry 1.1.0

Dependencies:
msal 1.26.0
azure-mgmt-resource 23.1.0b2

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\redacted\.azure\cliextensions'

Python (Windows) 3.11.7 (tags/v3.11.7:fa7a6f2, Dec 4 2023, 19:24:49) [MSC v.1937 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

### Additional context

From https://github.com/astral-sh/uv/issues/14415#issuecomment-3028278275 :
- https://github.com/Azure/azure-cli/pull/1042
- https://github.com/Azure/azure-cli/issues/1043
- https://github.com/Azure/azure-cli/issues/7367
- https://github.com/Azure/azure-cli/issues/3989
- https://github.com/Azure/azure-cli/pull/8208
- https://github.com/Azure/azure-cli/pull/10516

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.