actions / runner-images

GitHub Actions runner images
MIT License
9.13k stars 2.82k forks source link

Update/Add [Az powershell module] #9705

Closed ProjectsByJackHe closed 2 weeks ago

ProjectsByJackHe commented 2 weeks ago

Tool name

Az

Tool license

https://github.com/Azure/azure-powershell/blob/main/LICENSE.txt

Add or update?

Desired version

11.5.0

Approximate size

No response

Brief description of tool

We use Az PowerShell module as part of our CI/CD pipeline for performance testing.

However, because our desired version of Az is not present in windows-latest, we have to add a step to install it. This process can take upwards of 50 minutes: https://github.com/microsoft/netperf/actions/runs/8727656983/job/23948162545

It would be great if windows-latest came with Az module version 11.5.0

URL for tool's homepage

https://github.com/Azure/azure-powershell

Provide a basic test case to validate the tool's functionality.

$vm = Get-AzVM -ResourceGroupName $ResourceGroupName -Name $vmName

assert $vm is not NULL

$null = $vm | Remove-AzVM -Force

assert $vm is NULL

Platforms where you need the tool

Runner images where you need the tool

Can this tool be installed during the build?

Install-Module -Name Az -Force -AllowClobber -Repository PSGallery
Update-Module Az -Force

Tool installation time in runtime

6 - 50 minutes

Are you willing to submit a PR?

Yes, if I need to.

MaksimZhukov commented 2 weeks ago

Hello @ProjectsByJackHe! I am closing the issue as a duplicate of this one. Please find details there.