> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/appsec-rules/iac-security/storage/appsec-azure-136.md).

# Azure PostgreSQL Flexible Server does not enable geo-redundant backups misconfiguration detected in

## Rule Details

|                        |                    |
| ---------------------- | ------------------ |
| Cortex AppSec Rule ID  | APPSEC\_AZURE\_136 |
| Category - Subcategory | Storage - Backups  |
| Provider               | AZURE              |
| Severity               | LOW                |
| Framework              | Terraform          |

## Impact

Azure PostgreSQL Flexible Server allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster.

## How to Fix

*Resource:* azurerm\_postgresql\_flexible\_server

* *Arguments:* geo\_redundant\_backup\_enabled \[source,go]

***

resource "azurerm\_postgresql\_flexible\_server" "pass" { name = "example-psqlflexibleserver" resource\_group\_name = "azurerm\_resource\_group.example.name" location = "azurerm\_resource\_group.example.location" version = "12" delegated\_subnet\_id = "azurerm\_subnet.example.id" private\_dns\_zone\_id = "azurerm\_private\_dns\_zone.example.id" administrator\_login = "psqladmin" administrator\_password = "H\@Sh1CoR3!" zone = "1"

storage\_mb = 32768 geo\_redundant\_backup\_enabled = true

sku\_name = "GP\_Standard\_D4s\_v3" depends\_on = \["azurerm\_private\_dns\_zone\_virtual\_network\_link.example"]

## }


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/appsec-rules/iac-security/storage/appsec-azure-136.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
