Scripts must be stored in the following directory:
Supported file types are:
- .ps (PowerShell)
- .vbs (VisualBasic)
- .js (nodejs.exe)
Required PowerShell modules must be installed on the ARM server.
Please note that PowerShell scripts in the ARM context are executed without a console. Therefore, it may be necessary to include the $ProgressPreference = "SilentlyContinue" command as the first line in the script for successful execution of the script.
On the start page of the ARM configuration application, click "Scripting".
Select the area for which you are configuring scripts.
- ARM shows you a list of all the supported change actions before or after which scripts can be executed, as well as available parameters.
- Create a new script configuration.
Delete the selected script configuration.
Create a baseline (hash value) for all script configurations. Click Apply to synchronize the hash values with the server. This is a security feature that makes it difficult for potential attackers to inject malicious code into the scripts or replace them.
- Select whether to run the script before or after the action. Your selection filters the available actions (column 2).
- Select an action for which you want to make a script available.
- If you have several scripts available for an action, specify the default settings for the ARM users in the drop-down menu.
- Select a script file.
- Create a baseline (hash value) for the script configuration. Click Apply to synchronize the hash values with the server. This is a security feature that makes it difficult for potential attackers to inject malicious code into the scripts or replace them.
- Select how ARM passes the parameters to the script. You can select the parameters directly or pass them as JSON or CSV objects.
Select the command line parameters.
Select the type of data transfer to the script. Using a JSON or CSV object as a selection causes the script to provide a temporary file that contains the object data in the selected format.
- Specify credentials to run the script.
- Give the script assignment a unique name for the selection in the ARM applications.
- Optional but recommended: Leave a description.
Get a command line preview at any time.