For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

App Service Plan is not zone redundant misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AZURE_225

Category - Subcategory

Storage - Redundancy

Provider

AZURE

Severity

MEDIUM

Framework

ARM, Bicep, Terraform, Terraform Plan

Impact

This rule is checking to see if the App Service Plan for Azure is zone redundant. Zone redundancy means that the application's resources are distributed across multiple zones, which can protect against failures. If the plan isn't zone redundant, it could be a potential vulnerability. For instance, if there was an issue in one zone - like a natural disaster, power outage, or hardware failure - and the plan wasn't zone redundant, it could result in an application outage. Thus, not having an App Service Plan that is zone redundant could lead to service interruptions, which could negatively affect user experience, data, and potentially revenue.

How to Fix

Resource: azurerm_service_plan

  • Arguments: zone_balancing_enabled

To fix this issue, you need to ensure that your App Service Plan is geographically distributed and has a failover policy. This can be achieved by turning on the "zone_balancing_enabled" attribute in your Terraform configuration. [source,go]

resource "azurerm_service_plan" "pass" { name = "example" resource_group_name = azurerm_resource_group.example.name location = azurerm_resource_group.example.location os_type = "Linux" sku_name = "P1v2"

  • zone_balancing_enabled = true }


Last updated

Was this helpful?