Skip to content

Commit

Permalink
try to fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Feb 10, 2025
1 parent 7885ce9 commit 4d4b954
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ valid_geo_redundant_backup_enabled(resource) if {
deny_mysql_flexible_server_geo_redundant_backup_enabled contains reason if {
resource := data.utils.resource(input, "azapi_resource")[_]
data.utils.is_azure_type(resource.values, "Microsoft.DBforMySQL/flexibleServers")
not valid_geo_redundant_backup_enabled(resource.values)
not valid_geo_redundant_backup_enabled(resource)

reason := sprintf("Azure-Proactive-Resiliency-Library-v2: '%s' `azapi_resource` must have 'backup.geoRedundantBackup' set to '\"Enabled\"': https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/azure-resources/DBforMySQL/flexibleServers/#configure-geo-redundant-backup-storage", [resource.address])
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ valid_outbound_rules(resource) if {
}

valid_outbound_rules(resource) if {
not data.utils.exists(resource.values.body.properties.outboundRules)
not resource.values.body.properties.outboundRules
}

deny_use_nat_gateway_instead_of_outbound_rules_for_production_load_lalancer contains reason if {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"change": {
"actions": [
"create"
]
],
"after": {}
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package Azure_Proactive_Resiliency_Library_v2.azurerm_application_gateway
import rego.v1

valid_sku(resource) if {
resource.change.after.sku[_].name == "Standard_v2"
resource.values.sku[_].name == "Standard_v2"
}

valid_sku(resource) if {
Expand Down

0 comments on commit 4d4b954

Please sign in to comment.