Skip to content

[release/v7.7.0-preview.4] Use Azure CLI for early-access feed token - #27850

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

Justin Chung (jshigetomi) merged 1 commit into
PowerShell:release/v7.7.0-preview.4from
jshigetomi:backport-preview4-azure-cli

Conversation

@jshigetomi

Copy link
Copy Markdown
Collaborator

Summary

Backport #27849 to release/v7.7.0-preview.4.

  • 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

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 dc50fdc into PowerShell:release/v7.7.0-preview.4 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

Backports the pipeline change to acquire an Azure DevOps early-access feed token using Azure CLI instead of Azure PowerShell, removing the dependency on Az.Accounts on Linux agents and improving failure handling for token acquisition.

Changes:

  • Replaces AzurePowerShell@5 with AzureCLI@2 for Azure DevOps access token acquisition.
  • Uses az account get-access-token and explicitly fails when the token cannot be retrieved.

💡 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