question

akdron-9348 avatar image
0 Votes"
akdron-9348 asked ryanchill answered

Unsupported AppService log type

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-webappsazure-monitor
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@akdron-9348, it may be that Microsoft.Web/sites?apiVersion=2018-02-01 doesn't support Microsoft.Insights?apiVersion=2017-05-01-preview. To determine that, can you tell me which Microsoft.Web/sites?apiVersion= worked previously? Also, can you provide a larger portion of your ARM template? Furhtermore, do you get the same error when trying to create the resource in the portal?

0 Votes 0 ·

Thanks for replying to this - api versions haven't changed since creation over 6 months ago. Used to deploy without issue. I can't show a larger view of the template as it exceeds character limit, but have attached to this comment. 131584-larger-template-snip.txt

Can deploy through the portal, but the option for this log type no longer appears despite still being present in the documentation linked above


0 Votes 0 ·

If you can't do it in the portal, it may have been deprecated and the docs haven't been updated yet. However, I'm reaching out to the product group to verify.

1 Vote 1 ·

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered

Hi @akdron-9348,

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.