Comments (10)
This is a bug in Az Module 9.2.x. It is fixed in Az Module. 9.3.0: see Azure/azure-powershell#20407. Make sure your environment is updated accordingly.
from enterprise-azure-policy-as-code.
I'm using Microsoft hosted agents, they seems to be on 9.2 😥
from enterprise-azure-policy-as-code.
Solution for hosted agents to add Az update job before deployment steps for now
- task: AzurePowerShell@5
name: updateAzVersion
displayName: Update Az Version
inputs:
azureSubscription: $(tenant2DeployServiceConnection)
pwsh: true
azurePowerShellVersion: LatestVersion
ScriptType: "InlineScript"
Inline: "Install-Module Az -Force; Get-InstalledModule Az;"
from enterprise-azure-policy-as-code.
Thank you for that update. Microsoft is rolling out 9.3.0. About 50% of time, you get 9.2.0 or 9.3.0. I would GUESS that in a couple of days the problem disappears. Let's leave this issue open (I reopened it) until next week (I'll close it).
from enterprise-azure-policy-as-code.
Thank you for that update. Microsoft is rolling out 9.3.0. About 50% of time, you get 9.2.0 or 9.3.0. I would GUESS that in a couple of days the problem disappears. Let's leave this issue open (I reopened it) until next week (I'll close it).
from enterprise-azure-policy-as-code.
Thank you for that update. Microsoft is rolling out 9.3.0. About 50% of time, you get 9.2.0 or 9.3.0. I would GUESS that in a couple of days the problem disappears. Let's leave this issue open (I reopened it) until next week (I'll close it).
Official Microsoft documentation states that latest version of hosted agent contains 9.2.0, are you seeing 9.3.0 on hosted agents?
from enterprise-azure-policy-as-code.
Yes, I am seeing it intermittent as shown in this log snippet:
Generating script.
Formatted command: . '/home/vsts/work/1/s/Scripts/Deploy/Build-DeploymentPlans.ps1' -pacEnvironmentSelector epac-dev ` -devOpsType "ado" ` -InformationAction Continue
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command . '/home/vsts/work/_temp/89bd46b6-57d7-4d0b-bb2a-b6b572c39062.ps1'
Saved!
Import-Module -Name /usr/share/**az_9.3.0**/Az.Accounts/2.11.1/Az.Accounts.psd1 -Global
This repo builds the agent images. For Linux, this file drives the version:
"azureModules": [
{
"name": "az",
"url" : "https://raw.githubusercontent.com/Azure/az-ps-module-versions/main/versions-manifest.json",
"versions": [
"9.3.0"
],
"zip_versions": [
]
}
],
from enterprise-azure-policy-as-code.
It appears that the Microsoft hosted agents have been fully upgraded to the required 9.3.0
from enterprise-azure-policy-as-code.
Yes, readme reflects it as well
from enterprise-azure-policy-as-code.
I'll close it as resolved
from enterprise-azure-policy-as-code.
Related Issues (20)
- Exporting policies resources for PSRule throwing exception HOT 4
- BUG - Github workflows fails to evaluate plan path
- Export-AzPolicyResources not producing ampersand in active-exemptions.csv
- Sync-ALZPolicies outdated Assignment files HOT 2
- Check groupNames against policyDefinitionGroups during plan
- Role Assignments that fail due to a read-only resource lock do not throw an error HOT 1
- groupNames missing when exporting existing initiatives HOT 2
- Build-ExemptionsPlan MethodInvocationException HOT 8
- Support for Snowflakev2 policy parameter using builtin assignment ADF_allowed_linked_service_resource_types HOT 2
- Getting the following error when pulling existing exemptions in the plan
- policyGroupName logic is reversed HOT 3
- WARNING: Error, continue deployment: 201 HOT 2
- Error with Get-AzManagementGroup when subscription has deleted or other non-active state HOT 2
- Exemptions skipped in 'Prod Plan - Main Branch' stage HOT 6
- Support for wildcars in the scope(s) segment of an exemptions definition
- 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
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.