[release/v7.7.0-preview.4] Use Azure CLI for early-access feed token - #27850
Merged
Justin Chung (jshigetomi) merged 1 commit intoAug 13, 2026
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
dc50fdc
into
PowerShell:release/v7.7.0-preview.4
34 of 35 checks passed
Contributor
There was a problem hiding this comment.
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@5withAzureCLI@2for Azure DevOps access token acquisition. - Uses
az account get-access-tokenand explicitly fails when the token cannot be retrieved.
💡 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.7.0-preview.4.AzurePowerShell@5withAzureCLI@2for early-access feed token acquisitionAz.Accountson Linux agentsSource PR: #27849