Skip to content

Commit

Permalink
update readme and rule name, fix incorrect mock data
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Feb 10, 2025
1 parent abf0c17 commit a159c79
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"sku": {
"name": "Basic"
}
}
},
"type": "Microsoft.Network/publicIPAddresses@2024-05-01"
}
}
}
Expand All @@ -71,7 +72,8 @@
"sku": {
"name": "Standard"
}
}
},
"type": "Microsoft.Network/publicIPAddresses@2024-05-01"
}
}
}
Expand All @@ -96,7 +98,8 @@
"name": "Standard"
},
"zones": []
}
},
"type": "Microsoft.Network/publicIPAddresses@2024-05-01"
}
}
}
Expand All @@ -121,7 +124,8 @@
"name": "Standard"
},
"zones": ["1"]
}
},
"type": "Microsoft.Network/publicIPAddresses@2024-05-01"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ valid(resource) if {
count(resource.values.body.zones) >= 2
}

deny_use_resilient_load_lalancer_sku contains reason if {
deny_use_standard_sku_and_zone_redundant_ip contains reason if {
resource := data.utils.resource(input, "azapi_resource")[_]
data.utils.is_azure_type(resource.values, "Microsoft.Network/publicIPAddresses")
not valid(resource)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ valid_ip(resource) if {
count(resource.values.zones) >= 2
}

deny_deploy_application_gateway_in_a_zone_redundant_configuration contains reason if {
deny_use_standard_sku_and_zone_redundant_ip contains reason if {
resource := data.utils.resource(input, "azurerm_public_ip")[_]
not valid_ip(resource)

Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ conftest test --all-namespaces --update git::https://github.com/lonegunmanb/poli
[`use_nat_gateway_instead_of_outbound_rules_for_production_load_lalancer`](https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/azure-resources/Network/loadBalancers/#use-nat-gateway-instead-of-outbound-rules-for-production-workloads)
[`use_resilient_load_lalancer_sku`](https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/azure-resources/Network/loadBalancers/#use-standard-load-balancer-sku)

* `Microsoft.Network/publicIPAddresses`

[`use_standard_sku_and_zone_redundant_ip`](https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/azure-resources/Network/publicIPAddresses/#use-standard-sku-and-zone-redundant-ips-when-applicable)

* `Microsoft.DBforMySQL/flexibleServers`

[`mysql_flexible_server_high_availability_mode_zone_redundant`](https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/azure-resources/DBforMySQL/flexibleServers/#enable-ha-with-zone-redundancy)
Expand Down

0 comments on commit a159c79

Please sign in to comment.