79244610

Date: 2024-12-02 15:24:32
Score: 4.5
Natty:
Report link

The Managed Run Command doesn't seem to work as it should. When running through RunAsUser and RunAsPassword, the command is always called as if the system user called it (so the specified user context is not loaded). I used PsExec of PSTools as a workaround, by getting the user password from key vault directly from the VM powershell script.

There's also another problem I found, when running the managed run command through RunAsUser, the command parameters are not taken into account. Here's a link to an opened issue I found.

It would be great to have something working as described in the microsoft azure documentation for the managed run command, hopefully the azure team will release a fix in the future?

Reasons:
  • RegEx Blacklisted phrase (1.5): fix in the future?
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ggirodda