Skip to content

Commit

Permalink
Refactor Azure Login step in module-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sebassem committed Jan 11, 2024
1 parent 82ba0c5 commit 7f15dcd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/module-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,6 @@ jobs:
New-AzManagementGroupDeployment @inputObject -Whatif
azPSVersion: "10.4.1"

- name: Azure Login
id: loginRefresh
uses: azure/login@v1
with:
client-id: ${{ secrets.ARM_CLIENT_ID }}
tenant-id: ${{ secrets.ARM_TENANT_ID }}
enable-AzPSSession: true
allow-no-subscriptions: true

- name: Vend Subscriptions & Networking Scenarios (Deploy)
id: vend
uses: azure/powershell@v1
Expand All @@ -91,6 +82,15 @@ jobs:
"SUBID=$outputValue" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
azPSVersion: "10.4.1"

- name: Azure Login
id: loginRefresh
uses: azure/login@v1
with:
client-id: ${{ secrets.ARM_CLIENT_ID }}
tenant-id: ${{ secrets.ARM_TENANT_ID }}
enable-AzPSSession: true
allow-no-subscriptions: true

- name: Pester Tests
id: pester
uses: azure/powershell@v1
Expand Down

0 comments on commit 7f15dcd

Please sign in to comment.