Open rcarrata opened 3 years ago
any thoughts on that?
I have exactly the same error
It's an issue with the doc, the sample is incorrect. Action is a "string". It should read:
application_rule_collections:
- priority: 110
action: deny
rules:
Not:
application_rule_collections:
- priority: 110
action:
type: deny
rules:
SUMMARY
Firewall module azure_rm_azurefirewall is not processing correctly the application_rule_collections.
ISSUE TYPE
COMPONENT NAME
azure_rm_azurefirewall
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Tested in Fedora 33 and in RHEL7
STEPS TO REPRODUCE
Ansible playbook with the azure_rm_azurefirewall as shown below (same as the official documentation in ansible https://docs.ansible.com/ansible/2.10/collections/azure/azcollection/azure_rm_azurefirewall_module.html#examples):
EXPECTED RESULTS
Apply and update the application rules collection into the azure firewall
ACTUAL RESULTS
OTHER STEPS
Created the firewall successfully with the PIP assignation, fails when tried to do the application_rule_collections:
This worked like a charm: