Skip to content

Image build fails #12492

Open
Open
@jaswant-dnv

Description

@jaswant-dnv

Description

Image build fails.

GenerateResourcesAndImage : A parameter cannot be found that matches parameter name 'force'.
At /agent/_work/_temp/azureclitaskscript1751179766421_inlinescript.ps1:23 char:27

  • GenerateResourcesAndImage @CreateImageParams
  •                       ~~~~~~~~~~~~~~~~~~
    
  • CategoryInfo : InvalidArgument: (:) [GenerateResourcesAndImage], ParentContainsErrorRecordException
  • FullyQualifiedErrorId : NamedParameterNotFound,GenerateResourcesAndImage

Issue is due to missing parameter in https://github.com/actions/runner-images/blob/main/helpers/GenerateResourcesAndImage.ps1

I was trying to track if any changes introduced and found old commit where this parameter was part of code.

https://github.com/actions/runner-images/blob/b3d50abbad0a192b88d444263e39aa31830bafa5/helpers/GenerateResourcesAndImage.ps1

Image

Looks like option was depricated and i am trying to find how/what parameter can help me to as without force option pipeline fails with

==> Some builds didn't complete successfully and had errors:
--> azure-arm.build_image: the managed image named Runner-Image-Ubuntu2204 already exists in the resource group gssit-image-linux-rg, use a different manage image name or use the -force option to automatically delete it.

==>

Platforms affected

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

Runner images affected

  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

NA

Is it regression?

NA

Expected behavior

image build completes

Actual behavior

Refer request notes

Repro steps

rerun pipeline.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions