Microsoft.Web sites/slots/config 'logs' 2015-08-01
The sites/slots/config resource type can be deployed to: Resource groups.
To learn about resource group deployments, see Bicep or ARM template.
Options for name property
The sites/slots/config resource accepts different properties based on the value of the name property.
This article shows the properties that are available when you set name: 'logs'.
For other options, see:
Template format
To create a Microsoft.Web/sites/slots/config resource, add the following Bicep or JSON to your template.
resource symbolicname 'Microsoft.Web/sites/slots/config@2015-08-01' = {
name: 'logs'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
kind: 'string'
parent: resourceSymbolicName
properties: {
applicationLogs: {
azureBlobStorage: {
level: 'string'
retentionInDays: int
sasUrl: 'string'
}
azureTableStorage: {
level: 'string'
sasUrl: 'string'
}
fileSystem: {
level: 'string'
}
}
detailedErrorMessages: {
enabled: bool
}
failedRequestsTracing: {
enabled: bool
}
httpLogs: {
azureBlobStorage: {
enabled: bool
retentionInDays: int
sasUrl: 'string'
}
fileSystem: {
enabled: bool
retentionInDays: int
retentionInMb: int
}
}
}
}
Property values
sites/slots/config-logs
| Name | Description | Value |
|---|---|---|
| type | The resource type For Bicep, set this value in the resource declaration. |
'Microsoft.Web/sites/slots/config' |
| apiVersion | The resource api version For Bicep, set this value in the resource declaration. |
'2015-08-01' |
| name | The resource name See how to set names and types for child resources in Bicep or JSON ARM templates. |
'logs' |
| location | Resource Location | string (required) |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
| kind | Kind of resource | string |
| parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: slots |
| properties | SiteLogsConfigProperties |
SiteLogsConfigProperties
| Name | Description | Value |
|---|---|---|
| applicationLogs | Application logs configuration | ApplicationLogsConfig |
| detailedErrorMessages | Enabled configuration | EnabledConfig |
| failedRequestsTracing | Enabled configuration | EnabledConfig |
| httpLogs | Http logs configuration | HttpLogsConfig |
ApplicationLogsConfig
| Name | Description | Value |
|---|---|---|
| azureBlobStorage | Application logs azure blob storage configuration | AzureBlobStorageApplicationLogsConfig |
| azureTableStorage | Application logs to azure table storage configuration | AzureTableStorageApplicationLogsConfig |
| fileSystem | Application logs to file system configuration | FileSystemApplicationLogsConfig |
AzureBlobStorageApplicationLogsConfig
| Name | Description | Value |
|---|---|---|
| level | Log level | 'Error' 'Information' 'Off' 'Verbose' 'Warning' |
| retentionInDays | Retention in days. Remove blobs older than X days. 0 or lower means no retention. |
int |
| sasUrl | SAS url to a azure blob container with read/write/list/delete permissions | string |
AzureTableStorageApplicationLogsConfig
| Name | Description | Value |
|---|---|---|
| level | Log level | 'Error' 'Information' 'Off' 'Verbose' 'Warning' |
| sasUrl | SAS url to an azure table with add/query/delete permissions | string |
FileSystemApplicationLogsConfig
| Name | Description | Value |
|---|---|---|
| level | Log level | 'Error' 'Information' 'Off' 'Verbose' 'Warning' |
EnabledConfig
| Name | Description | Value |
|---|---|---|
| enabled | Enabled | bool |
HttpLogsConfig
| Name | Description | Value |
|---|---|---|
| azureBlobStorage | Http logs to azure blob storage configuration | AzureBlobStorageHttpLogsConfig |
| fileSystem | Http logs to file system configuration | FileSystemHttpLogsConfig |
AzureBlobStorageHttpLogsConfig
| Name | Description | Value |
|---|---|---|
| enabled | Enabled | bool |
| retentionInDays | Retention in days. Remove blobs older than X days. 0 or lower means no retention. |
int |
| sasUrl | SAS url to a azure blob container with read/write/list/delete permissions | string |
FileSystemHttpLogsConfig
| Name | Description | Value |
|---|---|---|
| enabled | Enabled | bool |
| retentionInDays | Retention in days. Remove files older than X days. 0 or lower means no retention. |
int |
| retentionInMb | Maximum size in megabytes that http log files can use. When reached old log files will be removed to make space for new ones. Value can range between 25 and 100. |
int |