From 6c768cd5268825ad1a7df960244dc14e628b2ebb Mon Sep 17 00:00:00 2001 From: "azure-monitor-assistant[bot]" <1435322+azure-monitor-assistant[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 18:20:25 +0000 Subject: [PATCH 1/2] ci: emit Azure Linux base image version in build summary After the Linux image is built and pulled, extract the resolved Azure Linux version from /etc/os-release and surface it as a pipeline warning in the build summary. This makes it easy to find the exact base image version for release notes without needing to kubectl exec into a running container or search through thousands of lines of build logs. Assisted-by: Azure SRE Agent --- .pipelines/azure_pipeline_mergedbranches.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pipelines/azure_pipeline_mergedbranches.yaml b/.pipelines/azure_pipeline_mergedbranches.yaml index 415c9075f..c19d47eff 100644 --- a/.pipelines/azure_pipeline_mergedbranches.yaml +++ b/.pipelines/azure_pipeline_mergedbranches.yaml @@ -263,6 +263,10 @@ extends: docker buildx build --platform $(BUILD_PLATFORMS) --tag ${{ variables.repoImageName }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --build-arg IMAGE_TAG=$(linuxTelemetryTag) --build-arg GOLANG_BASE_IMAGE=$(GOLANG_BASE_IMAGE) --build-arg CI_BASE_IMAGE=$(CI_BASE_IMAGE) --push --provenance=false . echo "##vso[task.logissue type=warning]Linux image built with tag: ${{ variables.repoImageName }}:$(linuxImagetag)" docker pull ${{ variables.repoImageName }}:$(linuxImagetag) + # Extract the resolved Azure Linux base image version for release notes + AZURELINUX_VERSION=$(docker run --rm --entrypoint="" ${{ variables.repoImageName }}:$(linuxImagetag) cat /etc/os-release | grep ^VERSION= | cut -d= -f2 | tr -d '"') + echo "##vso[task.setvariable variable=AZURELINUX_VERSION]$AZURELINUX_VERSION" + echo "##vso[task.logissue type=warning]Azure Linux base image version: $AZURELINUX_VERSION" else docker buildx build --platform $(BUILD_PLATFORMS) --tag ${{ variables.repoImageName }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --build-arg IMAGE_TAG=$(linuxTelemetryTag) --build-arg GOLANG_BASE_IMAGE=$(GOLANG_BASE_IMAGE) --build-arg CI_BASE_IMAGE=$(CI_BASE_IMAGE) --provenance=false . # load the multi-arch image to run tests From 078f52c026b2fbe82ee1764a93381838dfb0d478 Mon Sep 17 00:00:00 2001 From: "azure-monitor-assistant[bot]" <1435322+azure-monitor-assistant[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2026 22:45:27 +0000 Subject: [PATCH 2/2] ci: remove unnecessary setvariable for Azure Linux version The warning log alone is sufficient for reading the Azure Linux version during release notes updates. No downstream pipeline step consumes the AZURELINUX_VERSION variable, so remove it. Assisted-by: Azure SRE Agent --- .pipelines/azure_pipeline_mergedbranches.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pipelines/azure_pipeline_mergedbranches.yaml b/.pipelines/azure_pipeline_mergedbranches.yaml index c19d47eff..f7a58ae30 100644 --- a/.pipelines/azure_pipeline_mergedbranches.yaml +++ b/.pipelines/azure_pipeline_mergedbranches.yaml @@ -265,7 +265,6 @@ extends: docker pull ${{ variables.repoImageName }}:$(linuxImagetag) # Extract the resolved Azure Linux base image version for release notes AZURELINUX_VERSION=$(docker run --rm --entrypoint="" ${{ variables.repoImageName }}:$(linuxImagetag) cat /etc/os-release | grep ^VERSION= | cut -d= -f2 | tr -d '"') - echo "##vso[task.setvariable variable=AZURELINUX_VERSION]$AZURELINUX_VERSION" echo "##vso[task.logissue type=warning]Azure Linux base image version: $AZURELINUX_VERSION" else docker buildx build --platform $(BUILD_PLATFORMS) --tag ${{ variables.repoImageName }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --build-arg IMAGE_TAG=$(linuxTelemetryTag) --build-arg GOLANG_BASE_IMAGE=$(GOLANG_BASE_IMAGE) --build-arg CI_BASE_IMAGE=$(CI_BASE_IMAGE) --provenance=false .