Giter VIP home page Giter VIP logo

Comments (9)

anwather avatar anwather commented on September 7, 2024

Did you try running with the uses: azure/login@hf_447_release release?

from enterprise-azure-policy-as-code.

Jonatan-Bradley avatar Jonatan-Bradley commented on September 7, 2024

I did try and run into the same issue where later steps relies on Az.Accounts version 3.0.0 and the workflow breaks. The Azure login job will work but not the plan job after.

from enterprise-azure-policy-as-code.

anwather avatar anwather commented on September 7, 2024

I can bump the required version of Az.Accounts to 3.0.0 in the module - would that solve the problem do you think?

from enterprise-azure-policy-as-code.

anwather avatar anwather commented on September 7, 2024

The other thing I need to check is if we even still required the Az.ResourceGraph module (which is causing all of these issues with versions)

from enterprise-azure-policy-as-code.

Jonatan-Bradley avatar Jonatan-Bradley commented on September 7, 2024

Isn't the requirement of version Az.Accounts 3.0.0 in the module what's causing the issue? Since the specific error is:

 | The 'Build-DeploymentPlans' command was found in the module
 | 'EnterprisePolicyAsCode', but the module could not be loaded due to the
 | following error: [The running command stopped because the preference
 | variable "ErrorActionPreference" or common parameter is set to Stop:
 | This module requires Az.Accounts version 3.0.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.] For more information, run
 | 'Import-Module EnterprisePolicyAsCode'.

Sorry if my interpretation is off here

from enterprise-azure-policy-as-code.

anwather avatar anwather commented on September 7, 2024

from enterprise-azure-policy-as-code.

anwather avatar anwather commented on September 7, 2024

@Jonatan-Bradley - can you please test again for me?

from enterprise-azure-policy-as-code.

anwather avatar anwather commented on September 7, 2024

Ensure if you have steps in the workflow that install the Az.ResourceGraph module you remove them as well.

from enterprise-azure-policy-as-code.

Jonatan-Bradley avatar Jonatan-Bradley commented on September 7, 2024

That did the trick! Thank you for the quick response and solution, much appreciated!

from enterprise-azure-policy-as-code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.