[release/v7.6.5] Use Azure CLI for early-access feed token - #27851
Merged
Justin Chung (jshigetomi) merged 1 commit intoAug 13, 2026
Merged
Justin Chung (jshigetomi) merged 1 commit into
Justin Chung (jshigetomi) merged 1 commit into
Conversation
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
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Justin Chung (jshigetomi)
enabled auto-merge (squash)
August 13, 2026 21:29
Justin Chung (jshigetomi)
disabled auto-merge
August 13, 2026 21:29
Justin Chung (jshigetomi)
merged commit Aug 13, 2026
76902d4
into
PowerShell:release/v7.6.5
34 of 35 checks passed
Contributor
There was a problem hiding this comment.
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@5withAzureCLI@2for early-access feed token acquisition. - Added explicit failure when
az account get-access-tokenfails or returns an empty token.
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backport #27849 to
release/v7.6.5.AzurePowerShell@5withAzureCLI@2for early-access feed token acquisitionAz.Accountson Linux agentsSource 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