Skip to content

Failure building Ubuntu 24.04 image #13814

@mmulhearn

Description

@mmulhearn

Description

Image creation is failing, seemingly after testing Microsoft Defender.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 22.04
  • Ubuntu 24.04
  • Ubuntu Slim
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • macOS 26
  • macOS 26 Arm64
  • Windows Server 2022
  • Windows Server 2025
  • Windows Server 2025 with Visual Studio 2026

Image version and build link

Image Version: 20260213.493

Is it regression?

No

Expected behavior

Image builds successfully

Actual behavior

==> ubuntu-24_04.azure-arm.image: Provisioning with shell script: /home/vsts/work/1/s/runner-images/images/ubuntu/templates/../scripts/build/post-build-validation.sh
==> ubuntu-24_04.azure-arm.image: Test microsoft defender not installed using '-d /opt/microsoft/mdatp'
==> ubuntu-24_04.azure-arm.image: Microsoft Defender for Endpoint is installed.
==> ubuntu-24_04.azure-arm.image: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
==> ubuntu-24_04.azure-arm.image: Step "StepProvision" failed
==> ubuntu-24_04.azure-arm.image: Provisioning step had errors: Running the cleanup provisioner, if present...

Repro steps

Run an ADO pipeline with this task

- task: AzurePowerShell@5
    inputs:
      azureSubscription: 'scon-matt-test-runner-image'
      ScriptType: 'InlineScript'
      Inline: |
        $clientId = $env:clientId
        $clientSecret = $env:clientSecret
        $tenantId = $env:tenantId

        git clone https://github.com/actions/runner-images.git
        Set-Location runner-images
        
        Import-Module .\helpers\GenerateResourcesAndImage.ps1
        
        GenerateResourcesAndImage -SubscriptionId <REDACTED> -ResourceGroupName rg-matt-test-build-runner-image -AzureLocation "East US" -ImageType "Ubuntu2404" -AzureClientId $clientId -AzureClientSecret $clientSecret -AzureTenantId $tenantId
      azurePowerShellVersion: 'LatestVersion'
    env:
      clientId: $(Arm.Client.Id)
      clientSecret: $(Arm.Client.Secret)
      tenantId: $(Arm.Tenant.Id)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions