-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibiliy azure-cli and the azure collection #648
Comments
@dtometzki Because you are using a newer version of Azure CLI Core, the other packages require the latest version as well. If you want to use it now, install the version specified in requirements-azure. In addition, we are planning to upgrade all dependent versions. It is already in our schedule! Thank you very much! |
Hello @Fred-sun, many thanks azure-cli 2.11.1 is an very old version. But do have any time schedules when the update is ready ? |
@dtometzki We have planned to upgrade, the specific completion date is yet to be determined. Thank you very much! |
Duplicate of #477. |
Yes perhaps duplicate but without solution yet :-) |
As this is unfortunately not yet fixed and most likely always be a challenge with the different development speeds i will share my fix. Because i have been struggling on this as well and everyone talks about virtenv but nobody really shows how to use it. What I did is 3 step, I created 2 tasks handling the azure-cli (creation + destruction) and then your main task(s) where you can use the Azure cli commands. Role "install_azure-cli_venv"
Role 'main task'
Role 'remove_azure-cli_venv'
I hope this helps someone struggling with the same :) |
@dtometzki I escalated all my dependencies without resolving the conflict between them. For the time being, you can install both in separate virtual environments on the same server, thank you! |
@dtometzki Also, We will close this issue and continue this issue in #477 (Duplicate)! Thanks! |
@dtometzki Since there will be conflict between azure-cli and requirements-azure.txt when installed together, it is recommended to directly install the specified version of azure-cli to effectively avoid this problem, thank you!
|
SUMMARY
The ansible-collection and the azure-cli in on eviroment are incombatible. There are conflicts in many azure-mgmt* packages.
Is it a way to install both in one enviroment
ISSUE TYPE
COMPONENT NAME
azure-mgmt* release depencies
ANSIBLE VERSION
ansible [core 2.11.5]
config file = None
configured module search path = ['/home/damian/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/damian/.local/lib/python3.10/site-packages/ansible
ansible collection location = /home/damian/.ansible/collections:/usr/share/ansible/collections
executable location = /home/damian/.local/bin/ansible
python version = 3.10.0 (default, Oct 4 2021, 00:00:00) [GCC 11.2.1 20210728 (Red Hat 11.2.1-1)]
jinja version = 3.0.2
libyaml = True
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Install first with:
pip install azure-cli
pip install -r requirements-azure.txt
Then try if az version works ?
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: