Skip to content

fix: copy VHD to and from blob#8610

Open
timmy-wright wants to merge 4 commits into
mainfrom
timmy/test-embargo-process-2
Open

fix: copy VHD to and from blob#8610
timmy-wright wants to merge 4 commits into
mainfrom
timmy/test-embargo-process-2

Conversation

@timmy-wright
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 adds an optional Windows VHD pipeline step that detects builds sourced from a 1P shared gallery and recreates the produced SIG image version from a temporary managed disk to break gallery lineage before downstream validation/publishing.

Changes:

  • Reads sig_source_gallery_name from Windows settings to decide whether lineage breaking is needed.
  • Creates a temporary managed disk from the built SIG image version.
  • Deletes and recreates the SIG image version from that disk, then updates MANAGED_SIG_ID.

Comment thread .pipelines/scripts/windows_build_vhd.sh Outdated
@timmy-wright timmy-wright force-pushed the timmy/test-embargo-process-2 branch from c1daab4 to 3ac47b6 Compare May 30, 2026 05:38
@timmy-wright timmy-wright added windows ignore-for-release This pull request will not be included within official release notes labels May 30, 2026
Copilot AI review requested due to automatic review settings May 30, 2026 05:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

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

Comment thread .pipelines/scripts/windows_build_vhd.sh Outdated
--gallery-name "${SIG_GALLERY_NAME}" \
--gallery-image-definition "${SIG_IMAGE_NAME}" \
--gallery-image-version "${SIG_IMAGE_VERSION}" \
--os-snapshot "${DISK_ID}" \
Comment on lines +153 to +158
az sig image-version wait \
--resource-group "${AZURE_RESOURCE_GROUP_NAME}" \
--gallery-name "${SIG_GALLERY_NAME}" \
--gallery-image-definition "${SIG_IMAGE_NAME}" \
--gallery-image-version "${SIG_IMAGE_VERSION}" \
--deleted 2>/dev/null || sleep 30
@timmy-wright timmy-wright changed the title Optional step to copy VHD to and from blob as some galleries require this, fix: copy VHD to and from blob May 30, 2026
Azure requires AutomaticOSUpgradePolicy.EnableAutomaticOSUpgrade=true
when creating a VMSS from an official 1P gallery image. Without this,
VMSS creation fails with:
  "Virtual Machine Scale Set using official 1P gallery cannot be
   created without enabling AutomaticOSUpgrade."

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 31, 2026 02:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

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

--replica-count 1
-o none
)
if [ "${ORIGINAL_TAGS}" != "{}" ] && [ -n "${ORIGINAL_TAGS}" ]; then
--gallery-name "${SIG_GALLERY_NAME}"
--gallery-image-definition "${SIG_IMAGE_NAME}"
--gallery-image-version "${SIG_IMAGE_VERSION}"
--os-snapshot "${DISK_ID}"
Comment thread e2e/types.go
Comment on lines +247 to +249
vmss.Properties.UpgradePolicy.AutomaticOSUpgradePolicy = &armcompute.AutomaticOSUpgradePolicy{
EnableAutomaticOSUpgrade: to.Ptr(true),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore-for-release This pull request will not be included within official release notes windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants