Create a Post
Showing results for 
Search instead for 
Did you mean: 

CP CME: Using CME to deploy a shared Threat Prevention Profile


I am today using CP Cloud Management Extention (CP CME) to deploy scale sets in Azure.
MDS as management in HA setup.

If I need to automate new Cloudguard scale set with both security policy and threat prevention policy then how should that be done?

Should I include a line in the custom script as shown in the below extract of the json file (/home/admin/ using mgmt_cli to install policy (threat prevention policy) afterwards and solve it by doing so?

The autoprovison.json file which is auto generated by the tool delivered with CME called autoprov_cfg only allows me to install a security policy and with that it will also install the standard threat prevention policy. In my case have no rule enabled at all to inspect traffic for known and unknown vulnerabilities. The help details to "autoprov_cfg add template -h" suggest using the restrictive policy with '-rp' parameter but it states: "Created to avoid a limitation in which Access Policy and Threat Prevention Policy cannot be installed at the first time together"

Eg. of the configuration file used by CME. Extract of the json file - auto genereated by autoprov_cfg tool.

"tnPROD": {
"anti-bot": true,
"anti-virus": true,
"application-control": true,
"custom-gateway-script": "/home/admin/",
"generation": "3",
"identity-awareness": true,
"ips": true,
"one-time-password": "one-time-password",
"policy": "Northbound",
"send-logs-to-server": "SMEserver1",
"url-filtering": true,
"version": "R81.10"

Because I have more Azure environment I am using the same Threat Prevention profile with just different source and destination in the TP rulebase.

When I deploy new scale sets I want to make sure automatically to deploy this shared TP policy.


I was recommended to look at MDS Global Assignment for managing this but might also introduce other challenges.

Therefore are there any ways of using the custom script defined in the autoprov_cfg tool were I could deploy the shared threat prevention policy using the API using MGMT_CLI to install it?

Eg. using mgmt_cli installing Northbound policy together with TP policy

mgmt_cli install-policy policy-package "Northbound" access true threat-prevention true targets.1 "corporate-gateway" targets.2 "corporate-gateway1" targets.3 "corporate-gateway2 " --version 1.1 --format json





0 Kudos
1 Reply

The shared TP profile must be added to the relevant policy package before the policy installation takes place.
I presume this can be done with set package, publish, then install the relevant policy package. 

0 Kudos