Skip to content

feat(linux): onboard to AIB API version 2025-10-01 and use hosted script for workload prefetch optimization#8781

Open
cameronmeissner wants to merge 2 commits into
mainfrom
cameissner/utilize-workload-prefetch-api
Open

feat(linux): onboard to AIB API version 2025-10-01 and use hosted script for workload prefetch optimization#8781
cameronmeissner wants to merge 2 commits into
mainfrom
cameissner/utilize-workload-prefetch-api

Conversation

@cameronmeissner

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

onboard to AIB API version 2025-10-01 and use hosted script for workload prefetch optimization

Which issue(s) this PR fixes:

Fixes #

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

This PR updates the VHD prefetch optimization flow to target the Azure VM Image Builder (AIB) API version 2025-10-01 and enables the new workload optimization mode by supplying a hosted optimization script URI.

Changes:

  • Bump AIB image template apiVersion to 2025-10-01 and enable optimize.workload with scriptUri.
  • Require and inject WORKLOAD_OPTIMIZATION_SCRIPT_URL into the image template generation script.
  • Wire the new script URL into the Azure DevOps builder release pipeline environment for the prefetch step.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
vhdbuilder/prefetch/templates/optimize.json Updates AIB template API version and adds optimize.workload with scriptUri placeholder.
vhdbuilder/prefetch/scripts/optimize.sh Validates new env var and injects workload script URL into the template before az resource create.
.pipelines/templates/.builder-release-template.yaml Passes hosted workload optimization script URL into the prefetch optimization task environment.

Comment thread vhdbuilder/prefetch/scripts/optimize.sh
Comment thread vhdbuilder/prefetch/scripts/optimize.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants