> 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/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-monitoring-log-profile-is-not-configured-to-export-activity-logs.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Monitoring log profile is not configured to export activity logs

### Synopsis

| Field               | Value                                                                  |
| ------------------- | ---------------------------------------------------------------------- |
| Rule Type           | Detection                                                              |
| Finding Type        | Azure Monitoring log profile is not configured to export activity logs |
| Finding ID          | 60000411                                                               |
| Generates a Finding | This detection rule also generates a finding                           |
| Severity            | Informational                                                          |
| Category            | CONFIGURATION                                                          |
| Cloud Providers     | AZURE                                                                  |
| Platform Module     | CSPM                                                                   |
| Asset Types         | AZURE\_SUBSCRIPTION                                                    |
| ATT\&CK Tactic      | TA0112 (TA0112)                                                        |
| ATT\&CK Technique   | T1685.002 (T1685.002)                                                  |

### Description

Critical security events may not be logged or retained without proper Azure Activity Log profile configuration, hindering security posture and incident response capabilities.

Azure Activity Logs record subscription-level events, including administrative actions, service health, and resource changes. Without an active Log Profile, these crucial logs are not exported to a designated storage account or security information and event management solution, making it impossible to detect unauthorized activities, breaches, or misconfigurations. Attackers could operate undetected, modifying resources or accessing sensitive data without leaving an auditable trail.

The misconfiguration of log profiles leads to a significant blind spot in an organization's security monitoring capabilities. Without comprehensive activity logs, investigating security incidents becomes challenging, if not impossible. This impedes forensic analysis, compliance adherence, and timely threat detection, potentially resulting in prolonged breaches, data exfiltration, or unauthorized resource manipulation.

To mitigate this, ensure at least one Azure Monitoring Log Profile is configured to export all activity log categories to a secure, long-term storage solution. Configure appropriate retention policies for these logs to meet compliance requirements and support extended forensic investigations.

### Remediation

**Manual steps:**

Azure Subscription - Manual remediation steps:

To create a new log profile (Export to a storage account) use following command:

```
az monitor log-profiles create --name <NAME_OF_LOGPROFILE> --location <LOCATION> --locations <LOCATIONS_LIST> --categories "Delete" "Write" "Action" --enabled true --days <RETENTION_IN_DAYS> --storage-account-id "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUPNAME>/providers/Microsoft.Storage/storageAccounts/<STORAGE_ACCOUNT_NAME>"
```

OR

To create a new log profile (Export to an event hub) use following command:

```
az monitor log-profiles create --name <NAME_OF_LOGPROFILE> --location <LOCATION> --locations <LOCATIONS_LIST> --categories "Delete" "Write" "Action" --enabled true --days <RETENTION_IN_DAYS> --service-bus-rule-id "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUPNAME>/providers/Microsoft.EventHub/namespaces/<EVENTHUB_NAMESPACENAME>/authorizationrules/RootManageSharedAccessKey"
```

NOTE: Make sure before referring Storage Account or Eventhub in above CLI commands, you have already created Storage Account or Eventhub as per your requirements.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-monitoring-log-profile-is-not-configured-to-export-activity-logs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
