> 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/logging/appsec-azure-33.md).

# Azure storage account logging for queues is disabled misconfiguration detected in code

## Rule Details

|                        |                                       |
| ---------------------- | ------------------------------------- |
| Cortex AppSec Rule ID  | APPSEC\_AZURE\_33                     |
| Category - Subcategory | Logging - Disabled or missing         |
| Provider               | AZURE                                 |
| Severity               | LOW                                   |
| Framework              | ARM, Bicep, Terraform, Terraform Plan |

## Impact

The *Azure Queue Storage* service stores messages that may be read by any client with access to the storage account. A queue may contain an unlimited number of messages, each of which can be up to 64KB in size when using version 2011-08-18 or newer. *Storage Logging* takes place server-side recording details in the storage account for both successful and failed requests. These logs allow users to see the details of read, write, and delete operations against the queues. *Storage Logging* log entries contain the following information about individual requests: timing information, for example start time, end-to-end latency, server latency, authentication details, concurrency information, and the size of request and response messages. *Storage Analytics* logs contain detailed information about successful and failed requests to a storage service. This information can be used to monitor individual requests and to diagnose issues with a storage service. Requests are logged on a best-effort basis. *Storage Analytics* logging is not enabled by default for your storage account.

## How to Fix

*Resource:* azurerm\_storage\_account

* *Arguments:* logging + hour\_metrics + minute\_metrics

## The *logging* field should be enough to enable logging. As Terraform apply might fail, it is recommended to also configure the *hour\_metrics* and *minute\_metrics* fields. \[source,go]

resource "azurerm\_storage\_account" "example" { name = "example" resource\_group\_name = data.azurerm\_resource\_group.example.name location = data.azurerm\_resource\_group.example.location account\_tier = "Standard" account\_replication\_type = "GRS" queue\_properties {

* logging { delete = true read = true write = true version = "1.0" retention\_policy\_days = 10 } } }

***

* hour\_metrics { enabled = true include\_apis = true version = "1.0" retention\_policy\_days = 10 }
* minute\_metrics { enabled = true include\_apis = true version = "1.0" retention\_policy\_days = 10 }

***


---

# 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/logging/appsec-azure-33.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.
