Unsupported AppService log type

akdron 1 Reputation point
2021-09-10T15:45:47.45+00:00

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.

resource-logs-categories

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,792 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,853 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,486 Reputation points Microsoft Employee
    2021-09-16T01:36:38.607+00:00

    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