Skip to content

Commit

Permalink
correct rule name, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Feb 7, 2025
1 parent 8f34700 commit 758c8e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ valid_geo_redundant_backup_enabled(after) {
after.body.properties.backup.geoRedundantBackup == "Enabled"
}

deny_mysql_flexible_server_high_availability_zone_redundant[reason] {
deny_mysql_flexible_server_geo_redundant_backup_enabled[reason] {
tfplan := data.utils.tfplan(input)
resource := tfplan.resource_changes[_]
resource.mode == "managed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ valid_geo_redundant_backup_enabled(resource) {
resource.change.after.geo_redundant_backup_enabled == true
}

deny_mysql_flexible_server_high_availability_zone_redundant[reason] {
deny_mysql_flexible_server_geo_redundant_backup_enabled[reason] {
tfplan := data.utils.tfplan(input)
resource := tfplan.resource_changes[_]
resource.mode == "managed"
Expand Down
11 changes: 6 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@ conftest test --all-namespaces -p <path-to-policies>/policy <path-to-tfplan>

### [Azure-Proactive-Resiliency-Library-v2](https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/)

* `Microsoft.ContainerService/managedClusters`
#### `Microsoft.ContainerService/managedClusters`
[`configure_aks_default_node_pool_zones`](https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/azure-resources/ContainerService/managedClusters/#deploy-aks-cluster-across-availability-zones)
* `Microsoft.DocumentDB/databaseAccounts`
#### `Microsoft.DocumentDB/databaseAccounts`
[`configure_cosmosdb_account_continuous_backup_mode`](https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/azure-resources/DocumentDB/databaseAccounts/#configure-continuous-backup-mode)
* `Microsoft.Network/applicationGateways`
#### `Microsoft.Network/applicationGateways`
[`migrate_to_application_gateway_v2`](https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/azure-resources/Network/applicationGateways/#migrate-to-application-gateway-v2)
[`deploy_application_gateway_in_a_zone_redundant_configuration`](https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/azure-resources/Network/applicationGateways/#deploy-application-gateway-in-a-zone-redundant-configuration)
* `Microsoft.Network/loadBalancers`
#### `Microsoft.Network/loadBalancers`
[`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.DBforMySQL/flexibleServers`
#### `Microsoft.DBforMySQL/flexibleServers`
[`mysql_flexible_server_high_availability_zone_redundant`](https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/azure-resources/DBforMySQL/flexibleServers/#enable-ha-with-zone-redundancy)
[`mysql_flexible_server_geo_redundant_backup_enabled`](https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/azure-resources/DBforMySQL/flexibleServers/#configure-geo-redundant-backup-storage)

## Apply(skip) policies

Expand Down

0 comments on commit 758c8e3

Please sign in to comment.