Complete the code to enable application logging in Azure App Service using Azure CLI.
az webapp log config --name myApp --resource-group myResourceGroup --application-logging [1]Using filesystem enables application logging to the file system in Azure App Service.
Complete the code to enable detailed error messages for your Azure App Service.
az webapp log config --name myApp --resource-group myResourceGroup --detailed-error-messages [1]Setting true enables detailed error messages in Azure App Service logs.
Fix the error in the command to stream logs from an Azure App Service.
az webapp log [1] --name myApp --resource-group myResourceGroupThe tail command streams live logs from the Azure App Service.
Fill both blanks to configure web server logging to blob storage with a retention period of 7 days.
az webapp log config --name myApp --resource-group myResourceGroup --web-server-logging [1] --retention-period [2]
Setting blob enables logging to Azure Blob Storage, and 7 sets retention to 7 days.
Fill all three blanks to create a diagnostic setting that sends logs to a storage account, event hub, and log analytics workspace.
az monitor diagnostic-settings create --name myDiagSetting --resource /subscriptions/123/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/myApp --storage-account [1] --event-hub-namespace [2] --workspace [3]
These are the names of the storage account, event hub, and log analytics workspace to send diagnostics data.