not sure if I should ask here or in <#CDE799L1M|> ...
# python
k
not sure if I should ask here or in #CDE799L1M I try to update a FirewallPolicyRuleCollectionGroup via
rcg = network.FirewallPolicyRuleCollectionGroup(
imported_rcg_result.name,
resource_group_name=resource_group_name,
firewall_policy_name=firewall_policy.name,
priority=priority,
rule_collections=merged_rule_collections,
opts=ResourceOptions(provider=virtual_wan_provider, id=existing_rcg.id)
)
this rcg is imported programatically in case it is not existing and that seams to work preview(shows the read)/up runs through. goal is that the rule collections are getting updated with new ones but somehow no change is detected while at the moment there is no rule collection present and merged_rule_collections have content:
Merged rule collections: [{'name': 'network-rule-collection-smallnet-dev-002', 'priority': 1000, 'action': 'Allow', 'rules': [{'name': 'network-rule-smallnet-dev-002-0', 'direction': 'Inbound', 'protocol': '*', 'sourceAddresses': ['10.238.8.0/27'], 'destinationAddresses': ['10.0.0.0/8'], 'destinationPorts': ['*'], 'sourcePorts': []}]}, {'name': 'application-rule-collection-smallnet-dev-002', 'priority': 26000, 'action': 'Allow', 'rules': [{'name': 'application-rule-smallnet-dev-002-0', 'priority': 26000, 'direction': 'Inbound', 'protocol': '*', 'sourceAddresses': ['10.238.8.0/27'], 'destinationAddresses': [], 'destinationPorts': [], 'sourcePorts': [], 'fqdns': []}, {'name': 'application-rule-smallnet-dev-002-1', 'priority': 26001, 'direction': 'Inbound', 'protocol': '*', 'sourceAddresses': ['10.238.8.0/27'], 'destinationAddresses': [], 'destinationPorts': [], 'sourcePorts': [], 'fqdns': []}, {'name': 'application-rule-smallnet-dev-002-2', 'priority': 26002, 'direction': 'Inbound', 'protocol': '*', 'sourceAddresses': ['10.238.8.0/27'], 'destinationAddresses': [], 'destinationPorts': [], 'sourcePorts': [], 'fqdns': []}]}, {'name': 'nat-rule-collection-smallnet-dev-002', 'priority': 55000, 'action': 'Dnat', 'rules': []}]
that are dummy rules but should be actually working. aynone an idea? Slack Conversation