Right now, the ScriptPath parameter of this commandlet expects a Filesystem path only. As in, if I pass a Blob Storage URL with SAS token, it doesn't give out any output. When launched with Debug switch, I get the following.
This commandlet would be a much nicer alternative to a "Custom Script Extension" which differs for both Windows & Linux. Even in this case, the CommandID would be different but a simple if-else would be much more suitable when deploying Linux/Windows VMs from a single template and running commands. I can talk about the scenario more as well if required.
There are 2 things in this -
No output coming when an HTTP url is specified in the ScriptPath parameter.
Add ability to run commands from remote URLs since it is a much better way to run than the Custom Script Extensions.
Description
Right now, the
ScriptPath
parameter of this commandlet expects a Filesystem path only. As in, if I pass a Blob Storage URL with SAS token, it doesn't give out any output. When launched withDebug
switch, I get the following.This commandlet would be a much nicer alternative to a "Custom Script Extension" which differs for both Windows & Linux. Even in this case, the CommandID would be different but a simple if-else would be much more suitable when deploying Linux/Windows VMs from a single template and running commands. I can talk about the scenario more as well if required.
There are 2 things in this -
ScriptPath
parameter.Script/Steps for Reproduction
Module Version
Environment Data
Debug Output