79281580

Date: 2024-12-14 23:40:44
Score: 2.5
Natty:
Report link

I believe I have found the problem. When I call a script in Invoke-AzVmRunCommand, it is automatically executed in the system context with the System user. However, in the system context, you cannot run winget by default because it is an MSIX package. There are some workarounds available, but they are quite cumbersome and none of them have worked so far.I think I’ll close the ticket.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: iflach