Conversation
Copilot
AI
changed the title
[WIP] Remove LinuxImageDemand and WindowsImageDemand from image.yml, use $(LINUXVMIMAGE) instead of hardcoded ubuntu-24.04
Remove LinuxImageDemand and WindowsImageDemand variables, replace hardcoded ubuntu-24.04 with $(LINUXVMIMAGE)
Jun 24, 2025
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
This PR aligns the Azure SDK for Python repository with the infrastructure changes made in Azure/azure-sdk-for-net#50802 by removing deprecated image demand variables and standardizing on centralized image variable references.
Changes Made
1. Variable Removal
LinuxImageDemandvariable definition from/eng/pipelines/templates/variables/image.ymlWindowsImageDemandvariable was found in the codebase (already compliant)2. Usage Pattern Updates
docindex.ymlto usedemands: ImageOverride -equals $(LINUXVMIMAGE)instead ofdemands: $(LinuxImageDemand)3. Hardcoded Value Standardization
Replaced all hardcoded
ubuntu-24.04references with$(LINUXVMIMAGE)variable in 14 pipeline files:eng/pipelines/tsp-spec-sync.ymleng/pipelines/trigger-ml-sample-pipeline.ymleng/pipelines/generate-all-docs.ymleng/pipelines/templates/stages/archetype-sdk-tests.ymleng/pipelines/templates/stages/archetype-conda-release.ymleng/pipelines/templates/stages/archetype-python-release.yml(7 occurrences)eng/pipelines/templates/stages/partner-release.ymleng/pipelines/templates/stages/conda-sdk-client.ymleng/pipelines/templates/jobs/run-cli-tests.ymleng/pipelines/templates/jobs/build-conda-dependencies.ymleng/pipelines/templates/jobs/ci.yml(2 occurrences)eng/pipelines/templates/jobs/tests-nightly-python.yml(2 occurrences)Before and After Examples
Before:
After:
Benefits
$(LINUXVMIMAGE)variableValidation
LinuxImageDemandorWindowsImageDemandreferences in codebase$(LINUXVMIMAGE)variable references use proper Azure DevOps syntaxLINUXVMIMAGEvariable remains properly defined asubuntu-24.04inimage.ymlThis change ensures the Python SDK repository infrastructure remains aligned with the broader Azure SDK ecosystem while maintaining backward compatibility and improving maintainability.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.