You have a web application deployed to an Azure App Service. You want to enable application logging to the local file system to troubleshoot a runtime issue. Which of the following actions should you perform to enable this logging?
- Run the az webapp log config command with the --application-logging true parameter.Answer
- BAdd the Application Insights connection string to the application settings to initialize telemetry.
- CScale the App Service plan up to a Premium tier to unlock diagnostic logging features.
- DGrant the App Service managed identity access to Key Vault secrets using an access policy.
Answer
Run the az webapp log config command with the --application-logging true parameter.
Running the az webapp log config command with the --application-logging true parameter is the standard, native method to enable application logs on the local file system using the Azure CLI. This modifies the App Service configuration directly without incurring additional billing or requiring external services.
Step-by-Step Solution
Key Concept
Enabling application logging to the file system in Azure App Service
Estimated Time:45s