-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Description
Ubuntu 24.04 image fails to generate.
Build 'ubuntu-24_04.azure-arm.image' errored after 53 minutes 41 seconds: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
==> Wait completed after 53 minutes 41 seconds
==> Some builds didn't complete successfully and had errors:
--> ubuntu-24_04.azure-arm.image: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
==> Builds finished but no artifacts were created.
Exception: /home/vsts/work/_temp/ea8aa93d-75ed-435f-9c00-2b4dae00ed13.ps1:23
Line |
23 | GenerateResourcesAndImage `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Failed to build image.
##[error]PowerShell exited with code '1'.
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 Arm64
- Windows Server 2019
- Windows Server 2022
- Windows Server 2025
Image version and build link
Starting: Initialize job
Agent name: 'Hosted Agent'
Agent machine name: 'runnervm4y8n2'
Current agent version: '4.264.2'
Runner Image Provisioner
Operating System
Runner Image
Current image version: '20251215.174.1'
Agent running as: 'vsts'
Prepare build directory.
Set build variables.
Download all required tasks.
Downloading task: PowerShell (2.266.0)
Is it regression?
No
Expected behavior
ubuntu2404 image is generated.
Actual behavior
Build 'ubuntu-24_04.azure-arm.image' errored after 53 minutes 41 seconds: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
Repro steps
...
==> ubuntu-24_04.azure-arm.image: npm warn using --force Recommended protections disabled.
==> ubuntu-24_04.azure-arm.image: Provisioning with shell script: /home/vsts/work/1/s/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: Provisioning step had errors: Running the cleanup provisioner, if present...
==> ubuntu-24_04.azure-arm.image:
==> ubuntu-24_04.azure-arm.image: Deleting Virtual Machine deployment and its attached resources...
==> ubuntu-24_04.azure-arm.image: Deleted -> pkrvmo0ow73wp4j : 'Microsoft.Compute/virtualMachines'
==> ubuntu-24_04.azure-arm.image: Deleted -> pkrnio0ow73wp4j : 'Microsoft.Network/networkInterfaces'
==> ubuntu-24_04.azure-arm.image: Deleted -> pkripo0ow73wp4j : 'Microsoft.Network/publicIPAddresses'
==> ubuntu-24_04.azure-arm.image: Deleted -> pkrvno0ow73wp4j : 'Microsoft.Network/virtualNetworks'
==> ubuntu-24_04.azure-arm.image: Deleted -> pkrsgo0ow73wp4j : 'Microsoft.Network/networkSecurityGroups'
==> ubuntu-24_04.azure-arm.image: Deleted -> Microsoft.Compute/disks : '/subscriptions/00feb0da-9696-42fb-b2aa-17432878360e/resourceGroups/pkr-Resource-Group-o0ow73wp4j/providers/Microsoft.Compute/disks/pkroso0ow73wp4j'
==> ubuntu-24_04.azure-arm.image: Removing the created Deployment object: 'pkrdpo0ow73wp4j'
==> ubuntu-24_04.azure-arm.image:
==> ubuntu-24_04.azure-arm.image: Cleanup requested, deleting resource group ...
==> ubuntu-24_04.azure-arm.image: Resource group has been deleted.
Build 'ubuntu-24_04.azure-arm.image' errored after 53 minutes 41 seconds: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
==> Wait completed after 53 minutes 41 seconds
==> Some builds didn't complete successfully and had errors:
--> ubuntu-24_04.azure-arm.image: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
==> Builds finished but no artifacts were created.
Exception: /home/vsts/work/_temp/ea8aa93d-75ed-435f-9c00-2b4dae00ed13.ps1:23
Line |
23 | GenerateResourcesAndImage `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Failed to build image.
##[error]PowerShell exited with code '1'.
Finishing: task-generate-image-ubuntu2404