When attempting to use the vSphere Configuration Profile manager to apply a configuration baseline to a host you get the error, "Firewall ruleset name 'dynamicruleset' is not predefined user configurable ruleset."
If you look at the ESXi host client, or via command line with this command, esxcli network firewall ruleset list
. You will find that the ruleset 'dynamicruleset' does not exist on the ESXi host. However, if you look in the json file created when exporting the host configuration in the vSphere Configuration Profile Manager you will see a section similar to this.
{
"name": "dynamicruleset"
},
The 'dynamicruleset' does not appear on the host. So, when trying to apply the configuration profile it will error during the remediation process.
Remove the section referencing the 'dynamicruleset' from the json file and import it using the vSphere Configuration Profile Manager in vCenter.