Request - Script/Runbook Variable field

Would like to have a field on scripts for variables to be used in the script so that a master script can be updated without needing to go to each client with a unique script.

Example use case - Shrink OS Disk, move the $DiskSizeGB to a field above it.

While the disk size script is not major, I think 64 is what I would use most of the time, but it makes a simple example. This could also be applied to the chocolatey scripts as well.

I would like to see this be able to have multiple variables, ideally as I add them another line comes up or some logic for a multi-line field for each line being a variable upon creation of the script.

The second half would be how it would run / be configured -

There are a few scripts I'm testing that would benefit from this; So a different script would not be needed for specific azure file paths, availability zones, disk id, etc.

I believe the most logical spot to configure the field in the scripted actions section would be a field at the bottom similar to where 'Pass AD credentials' is so to display like.
This spot could function in the scheduled scripts and the run now scripts. In the even the same script is added multiple times, example chocolatey, put the number shown next to the script next to the variable.

3

Comments (1 comment)

Avatar
DStephenson

I found out at NerdioCon, that you can add parameters for Azure Runbooks that are run/scheduled from the Scripted Action blade, but we're not able to do it at the Host/HostPool level or with Windows Scripted Actions.

If/When this feature is added, it would be nice to have the same functionality for Windows Scripted actions and for the Host/HostPool as well.

0

Please sign in to leave a comment.