-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update/Add PowerShell Az Module v5.6.0 #2867
Comments
Hello @cognitionIT, |
Thank you @Darleev for the quick response, getting the latest stable version in the image rollout is fast enough for me, so it makes me happy to know I'll have some GitHub Actions fun to look forward to next weekend :-) |
Hello @cognitionIT, |
Thanks for letting me know @Darleev, I'll try to be patient ;-) |
I added this as a workaround for now $minAzModuleVersion = '5.6.0'
if(!(Test-Path "C:\Modules\az_$minAzModuleVersion")) {
Install-Module -Name Az -AllowClobber -Scope CurrentUser -Force
Save-Module -Path "C:\Modules\az_$minAzModuleVersion" -Name Az -RequiredVersion $minAzModuleVersion -Force -ErrorAction Stop
}
$env:PSModulePath = "C:\Modules\az_$($minAzModuleVersion);$($env:PSModulePath)"
Import-Module Az |
Thanks for this workaround, I'll add it to the workflow and test it in a couple of hours as I'd rather run on the latest windows runner than a self-hosted runner :-) |
Az |
Hello everyone! steps:
- task: AzurePowerShell@5
inputs:
azureSubscription: '<>'
ScriptType: 'InlineScript'
preferredAzurePowerShellVersion: '5.7.0' |
Now 5.7 is out which also fixes a critical issue about nested bicep files. |
@cognitionIT @krokofant we've added version 5.7.0 to all the images and started a rollout. It will be finished in 3-4 days. |
@cognitionIT the rollout is finished for all the images. |
Is there a standard procedure in place to request an AZ Module version update ? Or is it best to just open a new issue each x months Etc. ? Does the team have any plans to always stay N-1 or something on the latest version of AZ ? |
@brwilkinson we tend to manually update Az versions to avoid critical bugs that can be introduced in the new versions. Please create an issue if you'd like the new version to be added |
Thanks @miketimofeev sounds good. |
Tool information
Area for Triage:
Question, Bug, or Feature?:
Feature
Virtual environments affected
Can this tool be installed during the build?
According to this link, the PowerShell Az module v5.6.0+ has built-in support for resource deployments in Azure, using a bicep template file instead of a JSON template file. Unfortunately I cannot use Update-Module to update the module myself to the latest version as it was not installed using Install-Module (so it cannot be Updated via an inline script using the PowerShell GitHub Action).
The text was updated successfully, but these errors were encountered: