Giter Club home page Giter Club logo

Comments (10)

techlake avatar techlake commented on July 23, 2024

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.

artisticcheese avatar artisticcheese commented on July 23, 2024

I'm using Microsoft hosted agents, they seems to be on 9.2 😥

https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#:~:text=PowerShell%20Modules-,Az%3A%209.2.0,-MarkdownPS%3A%201.9

from enterprise-azure-policy-as-code.

artisticcheese avatar artisticcheese commented on July 23, 2024

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.

techlake avatar techlake commented on July 23, 2024

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.

techlake avatar techlake commented on July 23, 2024

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.

artisticcheese avatar artisticcheese commented on July 23, 2024

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.

techlake avatar techlake commented on July 23, 2024

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.

techlake avatar techlake commented on July 23, 2024

It appears that the Microsoft hosted agents have been fully upgraded to the required 9.3.0

from enterprise-azure-policy-as-code.

artisticcheese avatar artisticcheese commented on July 23, 2024

Yes, readme reflects it as well

from enterprise-azure-policy-as-code.

techlake avatar techlake commented on July 23, 2024

I'll close it as resolved

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.