- 16 Aug 2023
- 6 Minutes to read
Creating Enforcement Sets
- Updated on 16 Aug 2023
- 6 Minutes to read
The Enforcement Center allows you to actively control your asset environment. Use it to build and apply policies and create triage and remediation actions. Enforcements may be automated or run manually. The following procedure describes how to create a new Enforcement Set using the Create Enforcement Set button.
You can also create a new Enforcement Set by:
- Duplicating an existing Shared Enforcement Set, and then modifying it, as required.
- Saving a Predefined Enforcement Set as a New Enforcement Set, and then modifying it.
To create an Enforcement Set
Click icon on the left navigation panel. The Enforcement Center page opens.
Click Create Enforcement Set. The Create Enforcement Set drawer opens.
The Create Enforcement Set drawer displays all available Enforcement Actions according to their category. The most recently used Actions are in the Recently Used category. Click the arrows on the right of a category to expand or collapse the category.
You can display Enforcement Actions in two views:
Click to display the Enforcement Actions in a list view.
Click to display the Enforcement Actions in a tile view.
In the Create Enforcement Set drawer, select an Enforcement Action in one of the following ways:
- Recently used Actions appear at the top.
- Scroll the list of Actions and click the Action you want.
- In the Search action field, begin typing the name of the Action you want. The list is automatically filtered as you type.
- From the Category list, select one or more categories and then an Action.
The selected Action is added to the Enforcement Set as the Main Action.
To add a description of the Enforcement Set, click Add description and type a description in the Description text box.
In the Enforcement Set name field, use the default name provided or enter a different name for the Enforcement Set.Note:Axonius autofills fields with default values where possible. Required fields are marked with a * next to the field name.
In the Run action on assets matching following query field, from the Module list, select the module/asset type you want to query. Then, from the Select Query list, do one of the following:
- Select a saved query from the list.
- Click Add Query to create a new query using the query wizard. To learn more about creating a new query, see Adding a New Query.
In the Main Action section, use the default name provided in Action name or enter a new name.
If you want to configure dynamic values for this action, toggle on Configure Dynamic Values and Define the statement with the assistance of Autocomplete and Syntax Helper. Click Validate to make sure the statement is valid. To learn more about statement syntax, see Configuring Enforcement Action Statements.
Fill in the remaining required fields for the Main Action. To learn more about each Enforcement Action and its fields, see the Enforcement Action Index.
Once all required fields are filled in, you can test the connection to the Adapter by clicking Test Connection. This functionality is not available for all Enforcement Actions.
Do one of the following:
To configure scheduling and run the Enforcement Set automatically at specified times, toggle on Set scheduling and set the schedule parameters. See Scheduling Enforcement Set Runs.
To configure optional fields, click Additional Fields and provide values for the fields you want to use. See the Enforcement Action Index for details on each field of each Enforcement Action.
To configure Success Actions, Failure Actions, or Post Actions, click Advanced Options. See Configuring Success, Failure and Post Enforcment Actions below.
To save the Enforcement Set at any time, even if not all required fields are filled in, click Save. The Drafts folder on the Enforcement Set page is displayed.
To use Test Run to test the outcome of the Actions, click Test Run. See Testing an Enforcement Set for more information on using Test Run.
To save the Enforcement Set and run it, click Save and Run. You can view the results of all Enforcement Set runs on the Run History page. See Viewing Run History.
Configuring Success, Failure, and Post Enforcement Actions
An Enforcement Set can include one or more Success, Failure, and/or Post Actions.
- Success Actions are run on each asset for which the Main Action completes successfully.
- Failure Actions are run on each asset for which the Main Action does not complete successfully.
- Post Actions are run on ALL assets matching the query after the Main action has completed.
As actions are added, they are organized under the Main Action as shown below:
To configure Success, Failure, and Post Enforcement Actions
- At the bottom of the Create Enforcement Set drawer, click Advanced options. A two-pane Enforcement Set drawer opens with Overview in the left pane and a description of the selected item in the right pane.
- To add an Action, hover the mouse pointer over button under Main Action. The types of actions you can add are displayed.
- Click one of the Actions and select the Action you want from the drawer. A tile for the Action is added under the Main Action and is automatically selected. Action details are displayed in the right pane. Configure all required fields and whatever optional fields you want.
- To add more Actions:
By default, the Main Action is run first, then all other Actions are run concurrently. To require all actions in the Enforcement Set to run serially in the order they are configured, at the top of the Overview pane, click the gear icon and toggle on Apply action execution order.
When this option is enabled, all Success Actions are run according to their configured order. Then, all Failure Actions are run according to their configured order. Lastly, all Post Actions are run according to their configured order.Note:Enabling this option affects the time it takes the Enforcement Set to run. Running Actions concurrently generally takes less time than running them in order.
When you have added and configured all the Actions you want, do one of the following:
- To save the Enforcement Set and continue editing, click Save. The Enforcement Set is saved.
- To use Test Run to test the outcome of the Actions, click Test Run. See Testing an Enforcement Set for more information on using Test Run.
- To save the Enforcement Set and run it, click Save and Run. The Enforcement Center page is displayed with the My Enforcements folder selected. You can view the results of all Enforcement Set runs on the Run History page. See Viewing Run History.
Creating a New Query
You can create a new query instead of using an existing saved query. This new query will be saved in the folder selected and can be accessed from the Folders pane of the Queries page.
To create a new query
At the bottom of the query list, click + Add Query. The query drawer opens.
In Name, enter a name for the new query.
In Description, enter a description that includes what assets the query returns.
In Tags, add tags if necessary.
- In Cache Settings, select whether to Always keep cached or deselect to not keep cached. When selected, query results are updated and stored in cache. This makes the Enforcement Set run faster.
In Query Expression, select the query parameters. For more about using the Query Wizard, see Creating Queries with the Query Wizard.
Under Access, configure which roles have access and whether they have Edit or View permission. See Saved Queries for how to configure the access settings.
In Folder, select the folder where the new query will be saved. Depending on the access configuration, the folder may be selected automatically.
To save the query, click Save. Click Cancel to close the Query Wizard page without saving any changes.
For more information about working with Enforcement Sets see the following:
Enforcement Center Overview
Using the Enforcement Center Page
Managing Enforcement Sets
Creating Enforcement Sets
Testing an Enforcement Set
Creating Enforcement Action Dynamic Value Statements
Scheduling Enforcement Set Runs
Running Enforcement Sets
Viewing Enforcement Set Run History
Terminating an Enforcement Set Run
Duplicating Enforcement Sets
Editing and Deleting Enforcement Sets