Virtual-environments: Install Azure powershell 4.7.0 (AZ module) (current max version is 4.6.0)

Created on 25 Sep 2020  路  11Comments  路  Source: actions/virtual-environments

Tool information

  • Tool name: Azure powershell
  • Add or update? Update
  • Desired version: 4.7.0
  • Approximate size:

Area for Triage:

Question, Bug, or Feature?:
Bug: The 4.6 version of Az contains a bug which breaks ARM deployments with secure strings as parameters. See https://github.com/Azure/azure-powershell/issues/12792

Virtual environments affected

  • [ ] macOS 10.15
  • [ ] Ubuntu 16.04 LTS
  • [ ] Ubuntu 18.04 LTS
  • [ ] Ubuntu 20.04 LTS
  • [ ] Windows Server 2016 R2
  • [x] Windows Server 2019

Can this tool be installed during the build?
No, since the azurepowershell task breaks if you set the az version to 4.7.0

Tool installation time in runtime
Not sure

Are you willing to submit a PR?
No, lacking knowledge on how to do this

Packages Ubuntu Windows awaiting-deployment feature request

Most helpful comment

@dibir-magomedsaygitov Can you please let us know when this will be available? I just checked in Azure Pipelines and the latest is still 4.6.0. Thanks!

All 11 comments

Hello, @PaulVrugt!
Thank you for your report! We have prepared PR with the addition of 4.7.0 version of Azure Powershell.
I will post an update message as soon as Image with the updated Azure Powershell is available for use.

@dibir-magomedsaygitov Wow that was fast. Thank you!

PR with Azure Powershell v4.7.0 was successfully merged and will be available with the this week's rollout.

@dibir-magomedsaygitov Can you please let us know when this will be available? I just checked in Azure Pipelines and the latest is still 4.6.0. Thanks!

Is there a workaround while we wait for the fix? Our pipelines broke...

@SamAchten the workaround is to revert to azure powershell 4.4. You can do this by using the following properties in the AzurePowerShell@5 task:

inputs:
    azurePowerShellVersion: OtherVersion
    preferredAzurePowerShellVersion: '4.4.0'

to prevent these kind of issues it might be better to always use a fixed version of azure powershell, and only updated it if you need a new functionality that requires a newer version. Otherwise it's possible your pipeline will break whenever they update azure powershell again. This probably won't happen, but you'll always see that is DOES happen when you try to release a hotfix or some other situation in which it's inconvenient

That worked! 馃コ Thanks

Hello everyone! Sorry for the delay, new Windows Images with updated Azure Powershell should be available next week.

Hello everyone! Sorry for the delay, new Windows Images with updated Azure Powershell should be available next week.

Do you have a date when this will be updated?

Hello everyone! Quick update: Azure Powershell v4.7.0 is available to use on all Ubuntu images and on Windows 19 image. Deployment of Windows 16 was delayed and (hopefully) will be delivered next week.
I will post update message when Azure Powershell v4.7.0 is available to use on Windows 16 as well. Thank you for your patience.

Hello, @PaulVrugt
Az 4.7.0 is now available for Windows Server 2016 and Windows Server 2019.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robertmclaws picture robertmclaws  路  35Comments

kaylangan picture kaylangan  路  56Comments

MarcDenman picture MarcDenman  路  32Comments

benoittgt picture benoittgt  路  34Comments

philipengberg picture philipengberg  路  37Comments