You can restrict running a script on virtual machines (VMs). For example, allow it to run only on VMs with a certain operating system or configuration.
To set the restrictions, specify the necessary filters when creating or editing the script settings. If the VM does not meet the conditions of the filter, the script will not run on it.
Filter parameters
You can set a filter by:
- OS template tags (mandatory parameter);
- VM configuration name;
- cluster name;
- vCPU count;
- RAM size;
- Storage volume.
The script will be available to run on a VM if it meets all the specified conditions.
Setting up filters
The filter syntax is described in Using filters.