0
0
Azurecloud~10 mins

App Service diagnostics and logging in Azure - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable application logging in Azure App Service using Azure CLI.

Azure
az webapp log config --name myApp --resource-group myResourceGroup --application-logging [1]
Drag options to blanks, or click blank then click option'
Ablob
Boff
Cfilesystem
Dconsole
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'off' disables logging.
Choosing 'blob' requires additional configuration.
Choosing 'console' is not a valid option here.
2fill in blank
medium

Complete the code to enable detailed error messages for your Azure App Service.

Azure
az webapp log config --name myApp --resource-group myResourceGroup --detailed-error-messages [1]
Drag options to blanks, or click blank then click option'
Adisable
Btrue
Cfalse
Denable
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'false' disables detailed error messages.
Using 'disable' or 'enable' are not valid boolean values here.
3fill in blank
hard

Fix the error in the command to stream logs from an Azure App Service.

Azure
az webapp log [1] --name myApp --resource-group myResourceGroup
Drag options to blanks, or click blank then click option'
Adownload
Blist
Cshow
Dtail
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'download' downloads logs but does not stream.
Using 'show' or 'list' do not stream logs live.
4fill in blank
hard

Fill both blanks to configure web server logging to blob storage with a retention period of 7 days.

Azure
az webapp log config --name myApp --resource-group myResourceGroup --web-server-logging [1] --retention-period [2]
Drag options to blanks, or click blank then click option'
Ablob
Bfilesystem
C7
D30
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'filesystem' stores logs locally, not in blob storage.
Setting retention to 30 days is not what the question asks.
5fill in blank
hard

Fill all three blanks to create a diagnostic setting that sends logs to a storage account, event hub, and log analytics workspace.

Azure
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]
Drag options to blanks, or click blank then click option'
Amystorageaccount
Bmyeventhub
Cmyloganalytics
Dmyresourcegroup
Attempts:
3 left
💡 Hint
Common Mistakes
Using resource group name instead of storage account or event hub.
Mixing up the order of resource names.