winget-cli
winget-cli copied to clipboard
Doesn't work with Azure VM CustomScriptExtension
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
- Create Azure VM
- Add vm extension of type Microsoft.Compute.CustomScriptExtension and give it winget commands.
- 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