-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Install not latest version of Az module install lastest version of submodule #22335
Comments
Hi @MasterKuat I tried but could not reproduce your problem. The version of Sql for me was 4.5.0 when installing Az 9.6.0. I see you have both 4.5.0 and 4.8.0 installed. Besides, could it be that Az.Sql 4.8.0 is the dependency of another module? Maybe the higher version was not installed by Az. Please check if you install any other modules that could bring in Az.Sql 4.8.0 before or after installing Az. |
Hi, @isra-fel indeed you are right for Az.sql sub-module. Installed version is the lastest 2.12.4 and not the 2.12.1 :
|
Hi @MasterKuat , for Az.Accounts, we deliberately designed it this way, i.e. installing Az always pulls in the latest Az.Accounts, because we want our customers to be free of security vulnerabilities, even if they may stick to an older version of Az. Besides, we don't introduce any breaking changes in Az.Accounts, to make sure it's compatibility with the other modules. |
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you! |
@isra-fel Great that no breaking changes are introduced to
So installing Az 9.6.0 and you pulling latest Az.Accounts by design makes many of the submodules not able to be imported. What's the point of bundling submodules into |
Description
If you you run :
Install-Module -Name Az -RequiredVersion 9.6.0
you expected that sub module (ie Az.Accounts or other one) has also corresponding version but it's not the case.Running previous command install Az.account v2.12.4 or Az.SQL v4.8.0 but required version of these module for 9.6.0 are respectivly 2.12.1 and v4.5.0. which lead to load issues.
Issue script & Debug output
Environment data
Module versions
Error output
No response
The text was updated successfully, but these errors were encountered: