From 34484978b8a02aa2268c37057c149948f78eba3f Mon Sep 17 00:00:00 2001 From: Helder Pinto Date: Tue, 21 May 2024 22:31:07 +0100 Subject: [PATCH] Fixed Az PS module versions --- .github/workflows/aoe-cd-dev.yml | 8 +++++++- .github/workflows/aoe-cd-prod.yml | 8 +++++++- .github/workflows/aoe-cd-test.yml | 8 +++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/aoe-cd-dev.yml b/.github/workflows/aoe-cd-dev.yml index 91137c0f1..523cd7329 100644 --- a/.github/workflows/aoe-cd-dev.yml +++ b/.github/workflows/aoe-cd-dev.yml @@ -25,7 +25,13 @@ jobs: shell: pwsh run: | Set-PSRepository PSGallery -InstallationPolicy Trusted - Install-Module -Name Az.Accounts,Az.Resources,Az.Storage,Az.OperationalInsights,Az.Sql,Az.Automation,Microsoft.Graph.Authentication,Microsoft.Graph.Identity.DirectoryManagement -Force + Install-Module -Name Az.Accounts -RequiredVersion 2.19.0 -Force + Install-Module -Name Az.Resources -RequiredVersion 6.16.2 -Force + Install-Module -Name Az.Storage -RequiredVersion 6.2.0 -Force + Install-Module -Name Az.OperationalInsights -RequiredVersion 3.2.0 -Force + Install-Module -Name Az.Sql -RequiredVersion 4.14.1 -Force + Install-Module -Name Az.Automation -RequiredVersion 1.10.0 -Force + Install-Module -Name Microsoft.Graph.Authentication,Microsoft.Graph.Identity.DirectoryManagement -Force - name: Check out repository code uses: actions/checkout@v3 - name: Login via Az module diff --git a/.github/workflows/aoe-cd-prod.yml b/.github/workflows/aoe-cd-prod.yml index 66b61a7bb..a06c57cf1 100644 --- a/.github/workflows/aoe-cd-prod.yml +++ b/.github/workflows/aoe-cd-prod.yml @@ -23,7 +23,13 @@ jobs: shell: pwsh run: | Set-PSRepository PSGallery -InstallationPolicy Trusted - Install-Module -Name Az.Accounts,Az.Resources,Az.Storage,Az.OperationalInsights,Az.Sql,Az.Automation,Microsoft.Graph.Authentication,Microsoft.Graph.Identity.DirectoryManagement -Force + Install-Module -Name Az.Accounts -RequiredVersion 2.19.0 -Force + Install-Module -Name Az.Resources -RequiredVersion 6.16.2 -Force + Install-Module -Name Az.Storage -RequiredVersion 6.2.0 -Force + Install-Module -Name Az.OperationalInsights -RequiredVersion 3.2.0 -Force + Install-Module -Name Az.Sql -RequiredVersion 4.14.1 -Force + Install-Module -Name Az.Automation -RequiredVersion 1.10.0 -Force + Install-Module -Name Microsoft.Graph.Authentication,Microsoft.Graph.Identity.DirectoryManagement -Force - name: Check out repository code uses: actions/checkout@v3 - name: Login via Az module diff --git a/.github/workflows/aoe-cd-test.yml b/.github/workflows/aoe-cd-test.yml index 87af07a46..34c63f7e9 100644 --- a/.github/workflows/aoe-cd-test.yml +++ b/.github/workflows/aoe-cd-test.yml @@ -23,7 +23,13 @@ jobs: shell: pwsh run: | Set-PSRepository PSGallery -InstallationPolicy Trusted - Install-Module -Name Az.Accounts,Az.Resources,Az.Storage,Az.OperationalInsights,Az.Sql,Az.Automation,Microsoft.Graph.Authentication,Microsoft.Graph.Identity.DirectoryManagement -Force + Install-Module -Name Az.Accounts -RequiredVersion 2.19.0 -Force + Install-Module -Name Az.Resources -RequiredVersion 6.16.2 -Force + Install-Module -Name Az.Storage -RequiredVersion 6.2.0 -Force + Install-Module -Name Az.OperationalInsights -RequiredVersion 3.2.0 -Force + Install-Module -Name Az.Sql -RequiredVersion 4.14.1 -Force + Install-Module -Name Az.Automation -RequiredVersion 1.10.0 -Force + Install-Module -Name Microsoft.Graph.Authentication,Microsoft.Graph.Identity.DirectoryManagement -Force - name: Check out repository code uses: actions/checkout@v3 - name: Login via Az module