From 43a17d23a620de220c878f729358d9c6fa070389 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 9 Sep 2021 14:01:18 -0700 Subject: [PATCH] Install az module if not installed in deploy-stress-tests.ps1 (#20605) Co-authored-by: Ben Broderick Phillips --- eng/common/scripts/stress-testing/deploy-stress-tests.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 b/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 index a95ce62ff02b..80c6471a1199 100644 --- a/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 +++ b/eng/common/scripts/stress-testing/deploy-stress-tests.ps1 @@ -22,6 +22,7 @@ $FailedCommands = New-Object Collections.Generic.List[hashtable] . (Join-Path $PSScriptRoot "../Helpers" PSModule-Helpers.ps1) Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module +Install-ModuleIfNotInstalled "az" "6.4.0" | Import-Module # Powershell does not (at time of writing) treat exit codes from external binaries # as cause for stopping execution, so do this via a wrapper function.