Fix CG pipeline: update retired windows-2019 image to windows-2022 - #9389
Closed
Sandeep Kumar Das (Sandeep-622) wants to merge 1 commit into
Closed
Fix CG pipeline: update retired windows-2019 image to windows-2022#9389Sandeep Kumar Das (Sandeep-622) wants to merge 1 commit into
Sandeep Kumar Das (Sandeep-622) wants to merge 1 commit into
Conversation
The AdaptiveCards-.NET-Daily pipeline was failing at agent allocation
('No image label found to route agent pool Azure Pipelines') because
windows-2019 is retired. This prevented the ComponentGovernanceComponentDetection
task from running, leaving the repo non-compliant for Component Governance.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d5865ea7-1d45-40ce-914c-6133278ad620
Sandeep Kumar Das (Sandeep-622)
requested review from
a team,
Paul Campbell (paulcam206) and
skunani
and
a lite review from Copilot
August 7, 2026 12:07
Copilot started reviewing on behalf of
Sandeep Kumar Das (Sandeep-622)
August 7, 2026 12:08
View session
There was a problem hiding this comment.
Pull request overview
Updates the Azure Pipelines agent image for the .NET CI pipeline to avoid agent allocation failures caused by the retirement of the windows-2019 hosted image, ensuring the pipeline can run Component Governance detection again.
Changes:
- Switch the
.NETCI pipeline agent image fromwindows-2019towindows-2022. - Simplify the
pooldeclaration to use onlyvmImage.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Paul Campbell (paulcam206)
approved these changes
Aug 7, 2026
skunani
approved these changes
Aug 10, 2026
laxmikanth-msft
approved these changes
Aug 10, 2026
Vineeth (vineethkuttan)
approved these changes
Aug 10, 2026
| buildPlatform: any cpu | ||
|
|
||
| pool: | ||
| name: Azure Pipelines |
There was a problem hiding this comment.
Is this the only place we need to make the change ?
Contributor
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
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.
Related Issue
No existing GitHub issue — addresses an internal Component Governance compliance action item.
Description
The
AdaptiveCards-.NET-Dailypipeline (.pipelines/dotnet-ci.yml) failed at agent allocation:The hosted
windows-2019image is retired, so the job never started — theComponentGovernanceComponentDetection@0task never ran, leaving the repo non-compliant for Component Governance.Fix: update the hosted image to a supported one.
CI-config-only change; no product/runtime impact. (
vmImagealone targets the hosted "Azure Pipelines" pool, so the explicitnameline is redundant and was removed.)Sample Card
Not applicable — pipeline configuration change only.