Navigation Menu

Skip to content
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

Dependency issue within Azure Pipelines AzurePowerShell task #1447

Closed
BernieWhite opened this issue May 30, 2022 · 0 comments · Fixed by #1455
Closed

Dependency issue within Azure Pipelines AzurePowerShell task #1447

BernieWhite opened this issue May 30, 2022 · 0 comments · Fixed by #1455
Assignees
Labels
bug Something isn't working
Milestone

Comments

@BernieWhite
Copy link
Collaborator

BernieWhite commented May 30, 2022

Description of the issue

Currently the AzurePowerShell@5 task requires an older version of Az.Accounts however when installing the newest version of Az.Resources v6.0 is take a dependency on Az.Accounts that does not work within the AzurePowerShell@5 task currently.

This module requires Az.Accounts version 2.8.0. An earlier version of
Az.Accounts is imported in the current PowerShell session. Please open a new
session before importing this module. This error could indicate that multiple
incompatible versions of the Azure PowerShell cmdlets are installed on your
system. Please see https://aka.ms/azps-version-error for troubleshooting
information.

Expected behaviour

Currently the only work around is to remove the dependency on Az.Accounts and Az.Resources until the task is updated to support newer versions. While we could pin the version that PSRule for Azure uses, it would break as soon a the task is updated.

Module in use and version:

  • Module: PSRule.Rules.Azure
  • Version: 1.15.2
@BernieWhite BernieWhite added the bug Something isn't working label May 30, 2022
@BernieWhite BernieWhite added this to the v1.15.3 milestone May 30, 2022
@BernieWhite BernieWhite self-assigned this May 30, 2022
BernieWhite added a commit to BernieWhite/PSRule.Rules.Azure that referenced this issue May 30, 2022
BernieWhite added a commit that referenced this issue May 31, 2022
@BernieWhite BernieWhite mentioned this issue May 31, 2022
4 tasks
@BernieWhite BernieWhite modified the milestones: v1.15.3, v1.16.0 May 31, 2022
BernieWhite added a commit to BernieWhite/PSRule.Rules.Azure that referenced this issue Jun 2, 2022
BernieWhite added a commit that referenced this issue Jun 3, 2022
* Remove Az dependencies #1447

* Add Az.Resources as dev dependency
This was referenced Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant