App Service apps should have resource logs enabled
Audit enabling of resource logs on the app. This enables you to recreate activity trails for investigation purposes if a security incident occurs or your network is compromised. The Azure Policy applies to `Microsoft.Web/sites`.
This enables you to recreate activity trails for investigation purposes if a security incident occurs or your network is compromised.
What this control checks
Checks whether App Service apps have resource logging turned on
Common pitfalls
Function apps are excluded from the check
The policy applies to Microsoft.Web/sites where kind does not contain functionapp.
Effect can be set to Disabled
The effect parameter has the default value AuditIfNotExists. Its allowed values are AuditIfNotExists and Disabled.
Audit evidence
Evidence that deployed resources meet this control: Azure Policy compliance results for the built-in policy definition "App Service apps should have resource logs enabled" (91a78b24-f231-4a8a-8da9-02c35b2b6510); PowerPipe control azure_compliance.control.appservice_web_app_diagnostic_logs_enabled.
Framework-specific interpretation
NIST SP 800-53 Rev 5: Mapped to AU-12 (Audit Record Generation), AU-12(1) (System-wide and Time-correlated Audit Trail), AU-6(4) (Central Review and Analysis) and 1 more clause.
FedRAMP Moderate Baseline Rev 4: Mapped to AU-12 (Audit Generation).
Framework mappings
The clauses this control is mapped to in each framework.
- AU-6(4) Central Review And Analysis
- AU-6(5) Central Review And Analysis
- AU-12 Audit Record Generation
- AU-12(1) System-Wide And Time-Correlated Audit Trial
FedRAMP Moderate Baseline Rev 4
- AU-12 Audit Generation
- 3.3.1: Create and retain system audit logs and records to the extent needed to enable the monitoring, analysis, investigation, and reporting of unlawful or unauthorized system activity
- 3.3.2 Ensure that the actions of individual system users can be uniquely traced to those users, so they can be held accountable for their actions
- AU.L2-3.3.1 Create and retain system audit logs and records to the extent needed to enable the monitoring, analysis, investigation, and reporting of unlawful or unauthorized system activity
- AU.L2-3.3.2 Ensure that the actions of individual system users can be uniquely traced to those users, so they can be held accountable for their actions
- AU-6(4) Central Review And Analysis
- AU-6(5) Integration / Scanning And Monitoring Capabilities
- AU-12 Audit Generation
- AU-12(1) System-Wide / Time-Correlated Audit Trail
- 1209.09aa3System.2-09.aa 09.10 Monitoring
Related controls
Tool mappings
Use these identifiers to cross-reference this control across tools, reports, and evidence.
- Compliance.tf Control:
appservice_web_app_diagnostic_logs_enabled - Powerpipe Control:
azure_compliance.control.appservice_web_app_diagnostic_logs_enabled - Azure Policy Definition:
91a78b24-f231-4a8a-8da9-02c35b2b6510
Last reviewed: 2026-10-11