-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows 2025 image build fails when Activating Windows Feature 'NET-Framework-Features' #11687
Comments
Hi @ChrisGibson1982 - we're not encountering this issue , could you please try to rerun the build and request you to share the repro steps to understand more about the issue (if not work with rerun) ? |
We are facing the same issue. Re-run is not solving the problem. Seems that this is a known issue that should be fixed as more users are facing this: #11510 We are building using the windows-2025.pkr.hcl configuration without any modifications: To build the image we are using images.CI/linux-and-win/build-image.ps1 Update: Did some further investigation. Last monday (2025-02-24T03:30:44.8495921Z) this was still working. It seems that this issue started after the update to image version 20250224.3.1. Update 2: I'm currently running a test build with the image version pinned to '20250209.1.0' Update 3: The build (with the pinned image version) is past the NET-Framework-45-features. As my other builds for windows 2019 and 2022 are succeeding, I don't expect any other issue. This issue is only related to windows 2025.
|
We've also seen this issue when attempting to build Windows 2025. Seems to be intermittent however as we've had at least one instance where it was successful, but then subsequently fails on
|
@mmcdermo2 The visual studio version is a different issue that has been fixed yesterday. See: #11680 For now the image version pinning seems to be working. That build is taking a few hours, so I can't guarantee that I won't face a different issue. But so far, everything seems good. |
@denyos thank you. I did a search yesterday but didn't find find that PR. Glad to hear it's fixed anyway, thank you. I'll kick off a fresh build now and see if I re-encounter the .net issue above |
Update: My build finished 30 minutes ago and is successful. |
Hi @ChrisGibson1982 - We request you to try with the below workaround. We're unable to encounter the issue from our end . |
The work around works, but now means that i have to run a modified template file. I find it really strange that you can't reproduce this. I will test again the next release without the modification and log an new issue if it doesn't work. Happy for this to be closed for now |
I re-tested our build on Friday, no longer getting the Visual Studio error and this issue also didn't crop up, so our build was successful. Don't know why we didn't hit it this time having seen it multiple times in the past |
Description
The windows 2025 build image generation fails (GenerateResourcesAndImage) when activating Windows Feature 'NET-Framework-Features'.
Error message from log:
azure-arm.image: Activating Windows Feature 'NET-Framework-Features'...
==> azure-arm.image: Install-WindowsFeature : The request to add or remove features on the specified server failed.
==> azure-arm.image: Installation of one or more roles, role services, or features failed.
==> azure-arm.image: Element not found. Error: 0x80070490
==> azure-arm.image: At C:\Windows\Temp\script-67c07d4c-ce66-ae6d-a955-81aeff501c62.ps1:21 char:19
==> azure-arm.image: + $result = Install-WindowsFeature @arguments
==> azure-arm.image: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm.image: + CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
==> azure-arm.image: Exception
==> azure-arm.image: + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
==> azure-arm.image: owsFeatureCommand
==> azure-arm.image: Failed to activate Windows Feature 'NET-Framework-Features'
==> azure-arm.image: At C:\Windows\Temp\script-67c07d4c-ce66-ae6d-a955-81aeff501c62.ps1:29 char:9
==> azure-arm.image: + throw "Failed to activate Windows Feature '$($feature.name)'"
==> azure-arm.image: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm.image: + CategoryInfo : OperationStopped: (Failed to activ...ework-Features':String) [], RuntimeException
==> azure-arm.image: + FullyQualifiedErrorId : Failed to activate Windows Feature 'NET-Framework-Features'
==> azure-arm.image:
==> azure-arm.image: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
==> azure-arm.image: Step "StepProvision" failed
Platforms affected
Runner images affected
Image version and build link
azure-arm.image: Activating Windows Feature 'NET-Framework-Features'...
==> azure-arm.image: Install-WindowsFeature : The request to add or remove features on the specified server failed.
==> azure-arm.image: Installation of one or more roles, role services, or features failed.
==> azure-arm.image: Element not found. Error: 0x80070490
==> azure-arm.image: At C:\Windows\Temp\script-67c07d4c-ce66-ae6d-a955-81aeff501c62.ps1:21 char:19
==> azure-arm.image: + $result = Install-WindowsFeature @arguments
==> azure-arm.image: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm.image: + CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
==> azure-arm.image: Exception
==> azure-arm.image: + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
==> azure-arm.image: owsFeatureCommand
==> azure-arm.image: Failed to activate Windows Feature 'NET-Framework-Features'
==> azure-arm.image: At C:\Windows\Temp\script-67c07d4c-ce66-ae6d-a955-81aeff501c62.ps1:29 char:9
==> azure-arm.image: + throw "Failed to activate Windows Feature '$($feature.name)'"
==> azure-arm.image: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm.image: + CategoryInfo : OperationStopped: (Failed to activ...ework-Features':String) [], RuntimeException
==> azure-arm.image: + FullyQualifiedErrorId : Failed to activate Windows Feature 'NET-Framework-Features'
==> azure-arm.image:
==> azure-arm.image: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
==> azure-arm.image: Step "StepProvision" failed
Is it regression?
no
Expected behavior
The image should build successfully
Actual behavior
The image build fails with an error
Repro steps
Run the command "GenerateResourcesAndImag" to build a new 2025 iamge
The text was updated successfully, but these errors were encountered: