Technical Tip: Edit security policy via CLI to add security profiles
Description
This article describes how to Edit security policy via CLI to add security profiles.
Related document.
https://docs.fortinet.com/document/fortigate/6.2.1/cli-reference/242620/firewall-policyExternal
Solution
In the below image, policy 1 does not have any security profiles added to it.

'show full-configuration' to view attached security profiles, will not give any result.
Also, modifying or attaching the security profiles will fail as depicted below:

In order to attach the security profiles to a policy, enable the UTM features first and then it will add any security profiles.
Same is illustrated in the below image:

