Deploy a Web App with diagnostics logging to Storage Account Blob Container enabled.
{"apiversion": "2020-12-01", "type": "microsoft.web/serverfarms", "name": "[parameters('appserviceplanname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('appserviceplanskuname')]"}}{"apiversion": "2020-12-01", "type": "microsoft.web/sites", "name": "[parameters('webappname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.web/serverfarms", parameters('appserviceplanname'))]", "[resourceid('microsoft.storage/storageaccounts", parameters('storageaccountname'))]"], "properties": {"name": "[parameters('webappname')]", "serverfarmid": "[resourceid('microsoft.web/serverfarms/", parameters('appserviceplanname'))]"}, "resources": [{"apiversion": "2020-12-01", "type": "config", "name": "logs", "dependson": ["[resourceid('microsoft.web/sites", parameters('webappname'))]"], "properties": {"applicationlogs": {"azureblobstorage": {"level": "[parameters('diagnosticslogslevel')]", "sasurl": "[concat(reference(resourceid('microsoft.storage/storageaccounts/", parameters('storageaccountname'))).primaryendpoints.blob, variables('blobcontainername'), "?", listaccountsas(parameters('storageaccountname'), "2018-02-01", variables('listaccountsasrequestcontent')).accountsastoken)]", "retentionindays": "[parameters('diagnosticslogsretentionindays')]"}}}}]} 