From c914c0933fa4835c6618a42bb276d6077423b170 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 26 Mar 2025 15:25:31 -0700 Subject: [PATCH] Import Az powershell module in self contained post script task (#6484) Co-authored-by: Ben Broderick Phillips --- eng/common/TestResources/deploy-test-resources.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/common/TestResources/deploy-test-resources.yml b/eng/common/TestResources/deploy-test-resources.yml index 7a4593af8..9a4887622 100644 --- a/eng/common/TestResources/deploy-test-resources.yml +++ b/eng/common/TestResources/deploy-test-resources.yml @@ -122,6 +122,7 @@ steps: scriptLocation: inlineScript scriptType: pscore inlineScript: | + eng/common/scripts/Import-AzModules.ps1 # Support post scripts using az powershell instead of az cli $env:ARM_OIDC_TOKEN = $env:idToken $scriptPath = '$(Agent.TempDirectory)/${{ parameters.SelfContainedPostScript }}' Write-Host "Executing self contained test resources post script '$scriptPath'"