Skip to content

Commit

Permalink
Bump azure/powershell from 1 to 2 (#1741)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack Tracey <[email protected]>
  • Loading branch information
dependabot[bot] and jtracey93 authored Aug 28, 2024
1 parent 5e9ac5a commit d8d28c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/test-portal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
2 changes: 1 addition & 1 deletion .github/workflows/update-alz-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d8d28c1

Please sign in to comment.