Comments (9)
Did you try running with the uses: azure/login@hf_447_release
release?
from enterprise-azure-policy-as-code.
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.
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.
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.
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.
from enterprise-azure-policy-as-code.
@Jonatan-Bradley - can you please test again for me?
from enterprise-azure-policy-as-code.
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.
That did the trick! Thank you for the quick response and solution, much appreciated!
from enterprise-azure-policy-as-code.
Related Issues (20)
- Support for wildcars in the scope(s) segment of an exemptions definition HOT 1
- Exception calling "ContainsKey" with "1" argument(s): "Value cannot be null. (Parameter 'key')" HOT 7
- Fix user assigned managed identity export HOT 2
- Get Existing AzureChinaCloud Exemptions not Returning Non-Management Group Scoped Exemptions HOT 7
- Export-AzPolicyResources Failing for AzureChinaCloud Tenants HOT 3
- Handle role assignments when managed identity is a member of a group HOT 1
- EPAC Plan Taking 15min to run HOT 1
- Duplicate exemption Id HOT 6
- Error building exemptions with Build-DeploymentPlans HOT 4
- Document All Assignments Option
- Failed exemption deployments do not throw errors HOT 3
- "Deprecated" in policy description for Custom policies will Disable the policy HOT 2
- [Enable Azure Monitor for VMs & VMss] Role assignment when using your own User Assigned Identity located in the caf "management" Management Group HOT 1
- Policy Set with single parameter used across multiple definitions causes error in Build-DeploymentPlans HOT 1
- ADO pipeline is constantly resulting with write-error "Assignment JSON file './Definitions/global-settings.jsonc' is not valid." HOT 11
- Failed deployments in the Activity log HOT 3
- Why the need of the same assignment "DenyAction-DeleteUAMIAMA" twice?
- Counts for Expired & Orphaned Exemptions are not incrementing
- PacSelector on Install-HydrationEpac HOT 5
- Schema for global settings - VSCode says "Property `$schema` is not allowed"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enterprise-azure-policy-as-code.