From 06728e72158c6b8e12e5dcaa64f073ec7255f237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Gr=C3=A4f?= Date: Sat, 1 Jun 2024 23:41:01 +1000 Subject: [PATCH] fix: Upgrade pwsh version to fix failing pipeline runs - `avm/res/compute/disk` (#2023) ## Description Upgrade pwsh version to fix failing pipeline runs. Closes https://github.com/Azure/bicep-registry-modules/issues/1801. Correlates and will conflict with https://github.com/Azure/bicep-registry-modules/pull/2019. ## Pipeline Reference | Pipeline | | -------- | | [![avm.res.compute.disk](https://github.com/Azure/bicep-registry-modules/actions/workflows/avm.res.compute.disk.yml/badge.svg?branch=users%2Fsegraef%2F1801)](https://github.com/Azure/bicep-registry-modules/actions/workflows/avm.res.compute.disk.yml) | ## Type of Change - [ ] Update to CI Environment or utlities (Non-module effecting changes) - [x] Azure Verified Module updates: - [x] Bugfix containing backwards compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in `version.json`: - [x] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description. - [ ] The bug was found by the module author, and no one has opened an issue to report it yet. - [ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in `version.json`. - [ ] Breaking changes and I have bumped the MAJOR version in `version.json`. - [ ] Update to documentation ## Checklist - [ ] I'm sure there are no other open Pull Requests for the same update/change - [ ] I have run `Set-AVMModule` locally to generate the supporting module files. - [ ] My corresponding pipelines / checks run clean and green without any errors or warnings --------- Co-authored-by: ChrisSidebotham-MSFT <48600046+ChrisSidebotham@users.noreply.github.com> Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com> --- avm/res/compute/disk/main.json | 4 ++-- avm/res/compute/disk/tests/e2e/import/dependencies.bicep | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/avm/res/compute/disk/main.json b/avm/res/compute/disk/main.json index 3a754a36b6..43d9eef03d 100644 --- a/avm/res/compute/disk/main.json +++ b/avm/res/compute/disk/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "13557505070746246600" + "version": "0.27.1.19265", + "templateHash": "12337807933413678436" }, "name": "Compute Disks", "description": "This module deploys a Compute Disk", diff --git a/avm/res/compute/disk/tests/e2e/import/dependencies.bicep b/avm/res/compute/disk/tests/e2e/import/dependencies.bicep index 3d1a1dac7e..a7ecc85487 100644 --- a/avm/res/compute/disk/tests/e2e/import/dependencies.bicep +++ b/avm/res/compute/disk/tests/e2e/import/dependencies.bicep @@ -105,7 +105,7 @@ resource triggerImageDeploymentScript 'Microsoft.Resources/deploymentScripts@202 } } properties: { - azPowerShellVersion: '8.0' + azPowerShellVersion: '11.5' retentionInterval: 'P1D' arguments: '-ImageTemplateName \\"${imageTemplate.name}\\" -ImageTemplateResourceGroup \\"${resourceGroup().name}\\"' scriptContent: loadTextContent('../../../../../../utilities/e2e-template-assets/scripts/Start-ImageTemplate.ps1') @@ -129,7 +129,7 @@ resource copyVhdDeploymentScript 'Microsoft.Resources/deploymentScripts@2020-10- } } properties: { - azPowerShellVersion: '8.0' + azPowerShellVersion: '11.5' retentionInterval: 'P1D' arguments: '-ImageTemplateName \\"${imageTemplate.name}\\" -ImageTemplateResourceGroup \\"${resourceGroup().name}\\" -DestinationStorageAccountName \\"${storageAccount.name}\\" -VhdName \\"${imageTemplateName}\\" -WaitForComplete' scriptContent: loadTextContent('../../../../../../utilities/e2e-template-assets/scripts/Copy-VhdToStorageAccount.ps1')