winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Doesn't work with Azure VM CustomScriptExtension

Open HoussemDellai opened this issue 6 months ago • 0 comments

Brief description of your issue

I have an Azure VM and want to run winget install commands or winget configuration (DSC) using VM Extension (Microsoft.Compute.CustomScriptExtension). But it fails because the user used by the extension cannot run and cannot even find winget cli.

Steps to reproduce

  1. Create Azure VM
  2. Add vm extension of type Microsoft.Compute.CustomScriptExtension and give it winget commands.
  3. You should see an error saying that winget cli was not found.

Expected behavior

I expect the Azure VM extension to be able to run the winget commands.

Actual behavior

Error: winget command was not found.

Environment

any version of winget

HoussemDellai avatar Jun 04 '25 08:06 HoussemDellai