Import Az powershell module in self contained post script task (#6484)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
Azure SDK Bot 2025-03-26 15:25:31 -07:00 committed by GitHub
parent bf36db827f
commit c914c0933f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'"