Is it possible to use ${ComponentName} in a Powershell script argument? My attempts at this didn't seem to work, just verifying.
Try ${Component.Name}. That *should work.
There is a list of supported script variables at the bottom of this articleSAM Script Component Monitors - Everything you need to know
Yeah, I've tried that. Both ${ComponentName} and ${Component.Name}. Neither works.
ah, those variables can't be used in the script arguments section and be "passed" in. However, just reference them directly in your script body and they should work.
Hm, ok. I think i tried that too, but seems counter intuitive that it can't be passed in. On another note, apparently this doesn't work in the URL field for an HTTPS monitor either. This makes setting up templates that monitor the same things a little harder.