Unsupported AppService log type

akdron 1 Reputation point

I am trying to deploy an App Service (Microsoft.Web/sites; apiVersion 2018-02-01) that was previously deploying via ARM template without issue - using diagnosticSettings provider with apiVersion 2017-05-01-preview

In the template I am specifying various log types - including File Audit Logs

                        "category": "AppServiceFileAuditLogs",  
                        "enabled": true,  
                        "retentionPolicy": {  
                            "enabled": false,  
                            "days": "[parameters('logRetentionDays')]"  

But this deployment is now failing with the error:
[error]BadRequest: Category 'AppServiceFileAuditLogs' is not supported.

However, the docs for the resource (below) suggests that this is still a supported log type. Any help with this would be really appreciated.


Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,991 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,330 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 26,951 Reputation points Microsoft Employee

    Hi @akdron ,

    AppServiceFileAuditLogs are only supported on App Service SKUs that are Premium and higher. This is doc'd under the Description column. Your template should work assuming [variables('aspName')] is set to such a plan.

    0 comments No comments