From d8d28c1629559e3a07de0fc32485cac904304c2d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 28 Aug 2024 09:40:04 +0100 Subject: [PATCH] Bump azure/powershell from 1 to 2 (#1741) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jack Tracey <41163455+jtracey93@users.noreply.github.com> --- .github/workflows/test-portal.yml | 18 +++++++++--------- .github/workflows/update-alz-tools.yml | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test-portal.yml b/.github/workflows/test-portal.yml index 527cb344..755b700c 100644 --- a/.github/workflows/test-portal.yml +++ b/.github/workflows/test-portal.yml @@ -75,7 +75,7 @@ jobs: run: env | sort - name: List available pwsh modules - uses: azure/powershell@v1 + uses: azure/powershell@v2 with: inlineScript: Get-Module -ListAvailable azPSVersion: "latest" @@ -89,7 +89,7 @@ jobs: enable-AzPSSession: true - name: Register subscriptions - uses: azure/powershell@v1 + uses: azure/powershell@v2 with: inlineScript: | ./src/scripts/Invoke-ActionRegisterSubscriptions.ps1 @@ -99,14 +99,14 @@ jobs: BILLING_SCOPE: ${{ secrets.BILLING_SCOPE }} - name: Pre-process subscriptions - uses: azure/powershell@v1 + uses: azure/powershell@v2 with: inlineScript: ./src/scripts/Invoke-ActionRemoveOrphanedRBAC.ps1 azPSVersion: "latest" - name: Generate eslzArm configuration id: config - uses: azure/powershell@v1 + uses: azure/powershell@v2 with: inlineScript: | ./src/scripts/Invoke-ActionGenerateEslzArmConfig.ps1 @@ -116,19 +116,19 @@ jobs: DEPLOYMENT_LOCATION: ${{ secrets.DEPLOYMENT_LOCATION }} - name: Run eslzArm deployment (TEST) - uses: azure/powershell@v1 + uses: azure/powershell@v2 with: inlineScript: ./src/scripts/Invoke-ActionRunEslzArmDeployment.ps1 -Test azPSVersion: "latest" - name: Run eslzArm deployment (WHAT IF) - uses: azure/powershell@v1 + uses: azure/powershell@v2 with: inlineScript: ./src/scripts/Invoke-ActionRunEslzArmDeployment.ps1 -WhatIf azPSVersion: "latest" - name: Run eslzArm deployment (DEPLOY) - uses: azure/powershell@v1 + uses: azure/powershell@v2 with: inlineScript: ./src/scripts/Invoke-ActionRunEslzArmDeployment.ps1 azPSVersion: "latest" @@ -140,7 +140,7 @@ jobs: Update-AzConfig -DisplayBreakingChangeWarning $false - name: Pester Test for Policies - uses: azure/powershell@v1 + uses: azure/powershell@v2 with: inlineScript: ./.github/actions-pester/PTF-TestPolicies.ps1 azPSVersion: "latest" @@ -150,7 +150,7 @@ jobs: TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} - name: Run eslzArm deployment (DESTROY) - uses: azure/powershell@v1 + uses: azure/powershell@v2 with: inlineScript: ./src/scripts/Invoke-ActionRunEslzArmDeployment.ps1 -Destroy azPSVersion: "9.4.0" diff --git a/.github/workflows/update-alz-tools.yml b/.github/workflows/update-alz-tools.yml index a3f29794..7de40f70 100644 --- a/.github/workflows/update-alz-tools.yml +++ b/.github/workflows/update-alz-tools.yml @@ -71,7 +71,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.github_token }} - name: Update ProviderApiVersions - uses: azure/powershell@v1 + uses: azure/powershell@v2 with: inlineScript: src/Alz.Tools/scripts/Update-ProviderApiVersionsZip.ps1 azPSVersion: "latest"