Alternatively, you can also configure the diagnostic logs to enable the use of blob storage for logging for web app with the ARM template section below.
{
"type": "Microsoft.Web/sites",
"name": "[parameters('webapp_name')]",
"apiVersion": "2015-08-01",
"location": "Southeast Asia",
"properties": {
"name": "[parameters('webapp_name')]",
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('serverfarms_name'))]"
},
"resources": [
{
"name": "logs",
"type": "config",
"apiVersion": "2015-08-01",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('webapp_name'))]"
],
"properties": {
"applicationLogs": {
"fileSystem": {
"level": "Off"
},
"azureTableStorage": {
"level": "Off",
"sasUrl": null
},
"azureBlobStorage": {
"level": "Verbose",
"sasUrl": "yourBlobStorageSasUrl",
"retentionInDays": null
},
"httpLogs": {
"fileSystem": {
"retentionInMb": 35,
"retentionInDays": null,
"enabled": false
},
"azureBlobStorage": {
"sasUrl": "yourBlobStorageSasUrl",
"retentionInDays": null,
"enabled": true
}
}
}
}
}
],
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', parameters('serverfarms_name'))]"
]
}