From 2804ccc90440b9d7a5cf047bfaf87c83d99eebd3 Mon Sep 17 00:00:00 2001 From: edgchen1 <18449977+edgchen1@users.noreply.github.com> Date: Fri, 13 Feb 2026 10:04:10 -0800 Subject: [PATCH 1/4] remove AzurePowerShell pwsh parameter so it will use powershell.exe on Windows. pwsh.exe is not available on some Windows agents. --- .../azure-pipelines/templates/publish-symbolrequestprod-api.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/ci_build/github/azure-pipelines/templates/publish-symbolrequestprod-api.yml b/tools/ci_build/github/azure-pipelines/templates/publish-symbolrequestprod-api.yml index 9f0230c4b1141..e7a4975122784 100644 --- a/tools/ci_build/github/azure-pipelines/templates/publish-symbolrequestprod-api.yml +++ b/tools/ci_build/github/azure-pipelines/templates/publish-symbolrequestprod-api.yml @@ -52,7 +52,6 @@ steps: inputs: azureSubscription: ${{ parameters.subscription }} azurePowerShellVersion: LatestVersion - pwsh: true ScriptType: InlineScript Inline: | # Part 1: Generate an Azure Token From 6daf2aaa1cfbdd912876446a73528314c10e6fdb Mon Sep 17 00:00:00 2001 From: edgchen1 <18449977+edgchen1@users.noreply.github.com> Date: Fri, 13 Feb 2026 10:07:38 -0800 Subject: [PATCH 2/4] add test usage of AzurePowerShell --- .../github/azure-pipelines/templates/py-win-cpu.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/ci_build/github/azure-pipelines/templates/py-win-cpu.yml b/tools/ci_build/github/azure-pipelines/templates/py-win-cpu.yml index 09603f2350657..ff99695564235 100644 --- a/tools/ci_build/github/azure-pipelines/templates/py-win-cpu.yml +++ b/tools/ci_build/github/azure-pipelines/templates/py-win-cpu.yml @@ -85,6 +85,15 @@ jobs: - template: set-nightly-build-option-variable-step.yml + - task: AzurePowerShell@5 + displayName: Test AzurePowerShell + inputs: + azureSubscription: OnnxrunTimeCodeSign_20240611 + azurePowerShellVersion: LatestVersion + ScriptType: InlineScript + Inline: | + Write-Host "Hello from AzurePowerShell" + - script: python -m pip install -r $(Build.SourcesDirectory)\tools\ci_build\github\windows\python\requirements.txt env: TMPDIR: "$(Agent.TempDirectory)" From 4bf6c11ac98305d92adc57d9274ae6968e7e5112 Mon Sep 17 00:00:00 2001 From: edgchen1 <18449977+edgchen1@users.noreply.github.com> Date: Fri, 13 Feb 2026 10:55:59 -0800 Subject: [PATCH 3/4] copy step to install azure deps --- .../github/azure-pipelines/templates/py-win-cpu.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/ci_build/github/azure-pipelines/templates/py-win-cpu.yml b/tools/ci_build/github/azure-pipelines/templates/py-win-cpu.yml index ff99695564235..3bcf654c632a2 100644 --- a/tools/ci_build/github/azure-pipelines/templates/py-win-cpu.yml +++ b/tools/ci_build/github/azure-pipelines/templates/py-win-cpu.yml @@ -85,6 +85,12 @@ jobs: - template: set-nightly-build-option-variable-step.yml + # TODO for testing!!! + - powershell: |- + Get-PackageProvider -Name NuGet -ForceBootstrap + Install-Module -Verbose -AllowClobber -Force Az.Accounts, Az.Storage, Az.Network, Az.Resources, Az.Compute + displayName: Install Azure Module Dependencies + - task: AzurePowerShell@5 displayName: Test AzurePowerShell inputs: @@ -93,6 +99,7 @@ jobs: ScriptType: InlineScript Inline: | Write-Host "Hello from AzurePowerShell" + # end of testing changes - script: python -m pip install -r $(Build.SourcesDirectory)\tools\ci_build\github\windows\python\requirements.txt env: From ab243f4407620700784e0ecd1fce4c896b6ae877 Mon Sep 17 00:00:00 2001 From: edgchen1 <18449977+edgchen1@users.noreply.github.com> Date: Fri, 13 Feb 2026 11:28:44 -0800 Subject: [PATCH 4/4] remove test code --- .../azure-pipelines/templates/py-win-cpu.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tools/ci_build/github/azure-pipelines/templates/py-win-cpu.yml b/tools/ci_build/github/azure-pipelines/templates/py-win-cpu.yml index 3bcf654c632a2..09603f2350657 100644 --- a/tools/ci_build/github/azure-pipelines/templates/py-win-cpu.yml +++ b/tools/ci_build/github/azure-pipelines/templates/py-win-cpu.yml @@ -85,22 +85,6 @@ jobs: - template: set-nightly-build-option-variable-step.yml - # TODO for testing!!! - - powershell: |- - Get-PackageProvider -Name NuGet -ForceBootstrap - Install-Module -Verbose -AllowClobber -Force Az.Accounts, Az.Storage, Az.Network, Az.Resources, Az.Compute - displayName: Install Azure Module Dependencies - - - task: AzurePowerShell@5 - displayName: Test AzurePowerShell - inputs: - azureSubscription: OnnxrunTimeCodeSign_20240611 - azurePowerShellVersion: LatestVersion - ScriptType: InlineScript - Inline: | - Write-Host "Hello from AzurePowerShell" - # end of testing changes - - script: python -m pip install -r $(Build.SourcesDirectory)\tools\ci_build\github\windows\python\requirements.txt env: TMPDIR: "$(Agent.TempDirectory)"