Skip to content

[release/v7.6.5] Use Azure CLI for early-access feed token - #27851

Merged
Justin Chung (jshigetomi) merged 1 commit into
PowerShell:release/v7.6.5from
jshigetomi:backport-765-azure-cli
Aug 13, 2026
Merged

Justin Chung (jshigetomi) merged 1 commit into
PowerShell:release/v7.6.5from
jshigetomi:backport-765-azure-cli

Conversation

@jshigetomi

Copy link
Copy Markdown
Collaborator

Summary

Backport #27849 to release/v7.6.5.

  • replace AzurePowerShell@5 with AzureCLI@2 for early-access feed token acquisition
  • avoid requiring Az.Accounts on Linux agents
  • fail explicitly if token acquisition fails

Source PR: #27849
Failing release run: https://dev.azure.com/mscodehub/PowerShellCore/_build/results?buildId=707180&view=logs&j=32463283-3482-5fcf-b4f1-bff946268a97&t=8121e543-1209-5880-8988-618789d8de73

Avoid the AzurePowerShell task's dependency on a preinstalled Az.Accounts module when configuring early-access NuGet credentials on Linux agents.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 8784f802-9d66-4692-b64d-c0713fa213cb
Copilot AI lite review requested due to automatic review settings August 13, 2026 21:27
@jshigetomi
Justin Chung (jshigetomi) requested a review from a team as a code owner August 13, 2026 21:27
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@jshigetomi Justin Chung (jshigetomi) added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Aug 13, 2026
@jshigetomi
Justin Chung (jshigetomi) enabled auto-merge (squash) August 13, 2026 21:29
@jshigetomi
Justin Chung (jshigetomi) merged commit 76902d4 into PowerShell:release/v7.6.5 Aug 13, 2026
34 of 35 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backport to release/v7.6.5 that updates the pipeline template used to acquire an early-access Azure DevOps feed token, switching from the Azure PowerShell task to the Azure CLI task to remove the Linux dependency on the Az.Accounts module and to fail explicitly when token acquisition fails.

Changes:

  • Replaced AzurePowerShell@5 with AzureCLI@2 for early-access feed token acquisition.
  • Added explicit failure when az account get-access-token fails or returns an empty token.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants